Add -p/--packages to 'doom upgrade'
And document -f/--force
This commit is contained in:
parent
7ff7287df5
commit
a2354a7ad7
1 changed files with 4 additions and 2 deletions
|
@ -1,7 +1,8 @@
|
|||
;;; core/cli/upgrade.el -*- lexical-binding: t; -*-
|
||||
|
||||
(defcli! (upgrade up)
|
||||
((force-p ["-f" "--force"]))
|
||||
((force-p ["-f" "--force"] "Discard local changes to Doom and upgrade anyway")
|
||||
(packages-only-p ["-p" "--packages"] "Only upgrade packages, not Doom"))
|
||||
"Updates Doom and packages.
|
||||
|
||||
This requires that ~/.emacs.d is a git repo, and is the equivalent of the
|
||||
|
@ -15,7 +16,8 @@ following shell commands:
|
|||
:bare t
|
||||
(if (delq
|
||||
nil (list
|
||||
(doom-cli-upgrade doom-auto-accept force-p)
|
||||
(unless packages-only-p
|
||||
(doom-cli-upgrade doom-auto-accept force-p))
|
||||
(doom-cli-execute "refresh")
|
||||
(when (doom-cli-packages-update)
|
||||
(doom-cli-reload-package-autoloads)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue