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:
parent
a2d2206797
commit
a79b2ec69e
1 changed files with 1 additions and 1 deletions
|
@ -314,7 +314,7 @@ OPTIONS:
|
|||
(cl-defun doom-cli-help--render-commands (commands &key prefix grouped? docs? (inline? t))
|
||||
(with-temp-buffer
|
||||
(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))
|
||||
(rest (remove toplevel commands))
|
||||
(drop (if prefix (length prefix) 0))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue