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 ")))))))))
|
||||
|
||||
(defcli! (:root :version)
|
||||
((simple? ("--simple"))
|
||||
&context context)
|
||||
"Show installed versions of Doom, Doom modules, and Emacs."
|
||||
(doom/version)
|
||||
(unless simple?
|
||||
((verbose? ("-v" "--verbose"))
|
||||
&context _)
|
||||
"Show installed versions of Doom core.
|
||||
|
||||
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)
|
||||
(with-temp-buffer
|
||||
(insert-file-contents (doom-path doom-emacs-dir "LICENSE"))
|
||||
|
Reference in New Issue
Block a user