From 1ee4a0a6ec43cb79f142716206e7177c7c5fb93c Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 13 Nov 2024 17:23:14 -0500 Subject: [PATCH] tweak(cli): move doom {version,doctor,info} to top-level These commands apply to all categories and so shouldn't have their own (and should be displayed above the others) in 'doom help's command listing. --- bin/doom | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/bin/doom b/bin/doom index dea9a92d8..60c17a0a5 100755 --- a/bin/doom +++ b/bin/doom @@ -257,11 +257,15 @@ SEE ALSO: ;; load them lazily. (defcli-group! :prefix 'doom + (defcli-alias! ((version v)) (:root :version)) ;; Import this for implicit 'X help' commands for your script: (defcli-alias! ((help h)) (:root :help)) ;; And suggest its use when errors occur. (add-to-list 'doom-help-commands "%p h[elp] %c") + (defcli-autoload! ((doctor doc))) + (defcli-autoload! (info)) + (defcli-group! "Config Management" :docs "Commands for maintaining your Doom Emacs configuration." (defcli-autoload! ((sync s))) @@ -279,12 +283,6 @@ SEE ALSO: ;; (load! "profile" dir) ) - (defcli-group! "Diagnostics" - :docs "Commands for troubleshooting and debugging Doom." - (defcli-autoload! ((doctor doc))) - (defcli-autoload! (info)) - (defcli-alias! ((version v)) (:root :version))) - (defcli-group! "Development" :docs "Commands for developing or launching Doom." (defcli-autoload! (ci))