diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2021-01-05 11:14:51 +0100 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2021-01-05 23:58:21 +0100 |
commit | cf289d7cfa34315bf13b3114b9a5bf3d3c05ebea (patch) | |
tree | 0630425a05c2c3ead31775ec2c825e950d4329b1 /guix/scripts.scm | |
parent | f42c6bbb8e279045dbd358b25fc1d53cb1dfeeed (diff) | |
download | guix-patches-cf289d7cfa34315bf13b3114b9a5bf3d3c05ebea.tar guix-patches-cf289d7cfa34315bf13b3114b9a5bf3d3c05ebea.tar.gz |
Discover extensions via GUIX_EXTENSIONS_PATH.
* guix/scripts.scm (%command-categories): Add extension category.
* guix/ui.scm (source-file-command): Also parse extensions files.
(command-files): Accept an optional directory argument.
(extension-directories): New procedure.
(commands): Use it.
(show-guix-help): Hide empty categories.
(run-guix-command): Try loading an extension if there is no matching Guix
command.
Diffstat (limited to 'guix/scripts.scm')
-rw-r--r-- | guix/scripts.scm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/guix/scripts.scm b/guix/scripts.scm index 9792aaebe9..34cba35401 100644 --- a/guix/scripts.scm +++ b/guix/scripts.scm @@ -3,6 +3,7 @@ ;;; Copyright © 2014 Deck Pickard <deck.r.pickard@gmail.com> ;;; Copyright © 2015, 2016 Alex Kost <alezost@gmail.com> ;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org> +;;; Copyright © 2021 Ricardo Wurmus <rekado@elephly.net> ;;; ;;; This file is part of GNU Guix. ;;; @@ -86,7 +87,8 @@ (development (G_ "software development commands")) (packaging (G_ "packaging commands")) (plumbing (G_ "plumbing commands")) - (internal (G_ "internal commands"))) + (internal (G_ "internal commands")) + (extension (G_ "extension commands"))) (define-syntax define-command (syntax-rules (category synopsis) |