cli/upgrade: add timeout flag
Since there is a lot of logic in `bin/doom upgrade` than just running two commands, I thought we should also add a timeout flag just like `update` has.
This commit is contained in:
parent
21883d9700
commit
c55676d221
1 changed files with 6 additions and 1 deletions
|
@ -13,7 +13,12 @@ following shell commands:
|
||||||
bin/doom update"
|
bin/doom update"
|
||||||
(and (doom-upgrade (or (member "-f" args)
|
(and (doom-upgrade (or (member "-f" args)
|
||||||
(member "--force" args)))
|
(member "--force" args)))
|
||||||
(doom-packages-update doom-auto-accept)
|
(doom-packages-update
|
||||||
|
doom-auto-accept
|
||||||
|
(when-let (timeout (cadr (or (member "--timeout" args)
|
||||||
|
(member "-t" args))))
|
||||||
|
(string-to-number timeout)))
|
||||||
|
|
||||||
(doom-reload-package-autoloads 'force-p)))
|
(doom-reload-package-autoloads 'force-p)))
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue