refactor(cli): rename struct constructors/copiers
To maintain our namespaces.
This commit is contained in:
parent
3a7eab38ad
commit
d231755bdf
2 changed files with 19 additions and 21 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue