mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-05 12:37:33 -05:00
fix(cli): ensure order of subcommands in 'doom help'
They should be in insertion order. They were formerly in reverse-insertion order.
This commit is contained in:
@ -314,7 +314,7 @@ OPTIONS:
|
|||||||
(cl-defun doom-cli-help--render-commands (commands &key prefix grouped? docs? (inline? t))
|
(cl-defun doom-cli-help--render-commands (commands &key prefix grouped? docs? (inline? t))
|
||||||
(with-temp-buffer
|
(with-temp-buffer
|
||||||
(let* ((doom-print-indent 0)
|
(let* ((doom-print-indent 0)
|
||||||
(commands (seq-group-by (fn! (if grouped? (doom-cli-prop (doom-cli-get % t) :group))) commands))
|
(commands (seq-group-by (fn! (if grouped? (doom-cli-prop (doom-cli-get % t) :group))) (nreverse commands)))
|
||||||
(toplevel (assq nil commands))
|
(toplevel (assq nil commands))
|
||||||
(rest (remove toplevel commands))
|
(rest (remove toplevel commands))
|
||||||
(drop (if prefix (length prefix) 0))
|
(drop (if prefix (length prefix) 0))
|
||||||
|
Reference in New Issue
Block a user