refactor(cli): precalculate cli & key in doom-cli-aliases
This commit is contained in:
parent
85fac73d37
commit
7e75271933
1 changed files with 5 additions and 4 deletions
|
@ -439,10 +439,11 @@ an integer.
|
||||||
|
|
||||||
This cannot see autoloaded CLIs. Use `doom-cli-load' or `doom-cli-load-all'
|
This cannot see autoloaded CLIs. Use `doom-cli-load' or `doom-cli-load-all'
|
||||||
to reach them."
|
to reach them."
|
||||||
(cl-loop for rcli in (hash-table-values doom-cli--table)
|
(cl-loop with cli = (doom-cli-get cli)
|
||||||
if (equal (doom-cli-key (doom-cli-get rcli))
|
with key = (doom-cli-key cli)
|
||||||
(doom-cli-key rcli))
|
for rcli in (hash-table-values doom-cli--table)
|
||||||
collect rcli))
|
if (equal key (doom-cli-key rcli))
|
||||||
|
collect cli))
|
||||||
|
|
||||||
(defun doom-cli-short-docs (cli)
|
(defun doom-cli-short-docs (cli)
|
||||||
"Return the first line of CLI's documentation.
|
"Return the first line of CLI's documentation.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue