refactor(cli): rename struct constructors/copiers

To maintain our namespaces.
This commit is contained in:
Henrik Lissner 2022-06-20 21:47:04 +02:00
parent 3a7eab38ad
commit d231755bdf
No known key found for this signature in database
GPG key ID: B60957CA074D39A3
2 changed files with 19 additions and 21 deletions

View file

@ -27,15 +27,6 @@
(kill-emacs 2))
;;
;;; Variables
(defvar doom-cli--dump (getenv "__DOOMDUMP")
"If non-nil, dump target CLIs to stdout (or all of `doom-cli--table').
This exists so external tools or Doom binscripts can inspect each other.")
;;
;;; Setup CLI session
@ -114,5 +105,9 @@ This exists so external tools or Doom binscripts can inspect each other.")
;; Load standard :help and :version handlers.
(load! "cli/help")
(defcli! (:root :dump) (&args commands)
"Dump metadata to stdout for other commands to read."
(doom-cli--dump (doom-cli-find commands)))
(provide 'core-cli)
;;; core-cli.el ends here