mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
refactor(cli): doom version: add -v/--verbose option
And make its default output only print `doom-version` to stdout.
This commit is contained in:
@ -2490,11 +2490,16 @@ OPTIONS:
|
|||||||
" or ")))))))))
|
" or ")))))))))
|
||||||
|
|
||||||
(defcli! (:root :version)
|
(defcli! (:root :version)
|
||||||
((simple? ("--simple"))
|
((verbose? ("-v" "--verbose"))
|
||||||
&context context)
|
&context _)
|
||||||
"Show installed versions of Doom, Doom modules, and Emacs."
|
"Show installed versions of Doom core.
|
||||||
(doom/version)
|
|
||||||
(unless simple?
|
OPTIONS:
|
||||||
|
-v, --verbose
|
||||||
|
Also show version (and git info) for GNU Emacs and installed module sources."
|
||||||
|
(if (not verbose?)
|
||||||
|
(print! "%s" doom-version)
|
||||||
|
(doom/version)
|
||||||
(terpri)
|
(terpri)
|
||||||
(with-temp-buffer
|
(with-temp-buffer
|
||||||
(insert-file-contents (doom-path doom-emacs-dir "LICENSE"))
|
(insert-file-contents (doom-path doom-emacs-dir "LICENSE"))
|
||||||
|
Reference in New Issue
Block a user