mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-31 14:43:40 -05:00
fix(cli): return *all* aliases from doom-cli-aliases
Now it walks the command tree breadth-first to collect *all* aliases that lead to the given command.
This commit is contained in:
@@ -334,7 +334,8 @@ an integer.
|
||||
This cannot see autoloaded CLIs. Use `doom-cli-load' or `doom-cli-load-all'
|
||||
to reach them."
|
||||
(cl-loop for rcli in (hash-table-values doom-cli--table)
|
||||
if (equal (doom-cli-alias rcli) (doom-cli-key cli))
|
||||
if (equal (doom-cli-key (doom-cli-get rcli))
|
||||
(doom-cli-key rcli))
|
||||
collect rcli))
|
||||
|
||||
(defun doom-cli-short-docs (cli)
|
||||
|
Reference in New Issue
Block a user