diff options
author | Tobias Geerinckx-Rice <me@tobias.gr> | 2024-08-18 02:00:00 +0200 |
---|---|---|
committer | Tobias Geerinckx-Rice <me@tobias.gr> | 2024-08-25 02:00:00 +0200 |
commit | a3c0f245be5c26b82eb3e40471c2daf2523323b0 (patch) | |
tree | bee22d9aab9f5441f6c7f0fb66b55075d18a4b6d | |
parent | f88a946249d75b9e8fa310471e7f2fec91d9790b (diff) | |
download | guix-a3c0f245be5c26b82eb3e40471c2daf2523323b0.tar.gz guix-a3c0f245be5c26b82eb3e40471c2daf2523323b0.zip |
import: Order importers alphabetically in ‘--help’ output.
I'd rather keep the list sorted than call SORT at run time.
We can still switch if committers remain incorrigible.
* guix/scripts/import.scm (importers): Sort.
Change-Id: If358b2d5de2912a33989d776476e9cf4d0b80537
-rw-r--r-- | guix/scripts/import.scm | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/guix/scripts/import.scm b/guix/scripts/import.scm index d724f2bca3..bbf31baa15 100644 --- a/guix/scripts/import.scm +++ b/guix/scripts/import.scm @@ -47,9 +47,11 @@ ;;; Entry point. ;;; -(define importers '("gnu" "pypi" "cpan" "hackage" "stackage" "egg" "elpa" - "gem" "go" "cran" "crate" "texlive" "json" "opam" - "minetest" "elm" "hexpm" "composer" "npm-binary")) +;; The list of all known importers. These are printed in order by SHOW-HELP, so +;; please keep this list alphabetically sorted! +(define importers '("composer" "cpan" "cran" "crate" "egg" "elm" "elpa" + "gem" "gnu" "go" "hackage" "hexpm" "json" "minetest" + "npm-binary" "opam" "pypi" "stackage" "texlive")) (define (resolve-importer name) (let ((module (resolve-interface |