mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-13 13:13:35 -05:00
refactor(cli): rename struct constructors/copiers
To maintain our namespaces.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user