Add -p/--packages to 'doom upgrade'

And document -f/--force
This commit is contained in:
Henrik Lissner 2020-01-26 04:45:45 -05:00
parent 7ff7287df5
commit a2354a7ad7
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -1,7 +1,8 @@
;;; core/cli/upgrade.el -*- lexical-binding: t; -*- ;;; core/cli/upgrade.el -*- lexical-binding: t; -*-
(defcli! (upgrade up) (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. "Updates Doom and packages.
This requires that ~/.emacs.d is a git repo, and is the equivalent of the This requires that ~/.emacs.d is a git repo, and is the equivalent of the
@ -15,7 +16,8 @@ following shell commands:
:bare t :bare t
(if (delq (if (delq
nil (list 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") (doom-cli-execute "refresh")
(when (doom-cli-packages-update) (when (doom-cli-packages-update)
(doom-cli-reload-package-autoloads) (doom-cli-reload-package-autoloads)