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:
Sean Farley 2019-08-29 17:03:42 -07:00
parent 21883d9700
commit c55676d221

View file

@ -13,7 +13,12 @@ following shell commands:
bin/doom update"
(and (doom-upgrade (or (member "-f" 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)))