Fix 'doom help'

doom-cli-internal-p was accidentally removed in e632871a1, and the
psuedo CLI command :main was renamed to :doom.
This commit is contained in:
Henrik Lissner 2020-08-24 23:32:31 -04:00
parent 0dfee56e35
commit 6e22a15e43
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 5 additions and 1 deletions

View file

@ -74,7 +74,7 @@
:bare t :bare t
(if command (if command
(doom--cli-print (doom-cli-get (intern command))) (doom--cli-print (doom-cli-get (intern command)))
(doom--cli-print (doom-cli-get :main)) (doom--cli-print (doom-cli-get :doom))
(terpri) (terpri)
(print! (bold "Commands:")) (print! (bold "Commands:"))
(print-group! (print-group!

View file

@ -164,6 +164,10 @@ purpose.")
(command)) (command))
doom--cli-commands))))) doom--cli-commands)))))
(defun doom-cli-internal-p (cli)
"Return non-nil if CLI is an internal (non-public) command."
(string-prefix-p ":" (doom-cli-name cli)))
(defun doom-cli-execute (command &rest args) (defun doom-cli-execute (command &rest args)
"Execute COMMAND (string) with ARGS (list of strings). "Execute COMMAND (string) with ARGS (list of strings).