Add -p/--purge switches to 'doom refresh'
This commit is contained in:
parent
83090894d8
commit
36ba16b295
1 changed files with 3 additions and 2 deletions
|
@ -216,7 +216,8 @@ BODY will be run when this dispatcher is called."
|
||||||
(load! "cli/install")
|
(load! "cli/install")
|
||||||
|
|
||||||
(defcli! (refresh re)
|
(defcli! (refresh re)
|
||||||
((if-necessary-p ["-n" "--if-necessary"] "Only regenerate autoloads files if necessary"))
|
((if-necessary-p ["-n" "--if-necessary"] "Only regenerate autoloads files if necessary")
|
||||||
|
(purge-p ["-p" "--purge"] "Also purge orphaned repos and ELPA packages"))
|
||||||
"Ensure Doom is properly set up.
|
"Ensure Doom is properly set up.
|
||||||
|
|
||||||
This is the equivalent of running autoremove, install, autoloads, then
|
This is the equivalent of running autoremove, install, autoloads, then
|
||||||
|
@ -241,7 +242,7 @@ stale."
|
||||||
(setq success t))
|
(setq success t))
|
||||||
(and (doom-cli-packages-build)
|
(and (doom-cli-packages-build)
|
||||||
(setq success t))
|
(setq success t))
|
||||||
(and (doom-cli-packages-purge nil 'builds-p nil)
|
(and (doom-cli-packages-purge purge-p 'builds-p purge-p)
|
||||||
(setq success t)))
|
(setq success t)))
|
||||||
(doom-cli-reload-package-autoloads (or success (not if-necessary-p)))
|
(doom-cli-reload-package-autoloads (or success (not if-necessary-p)))
|
||||||
(doom-cli-byte-compile nil 'recompile))
|
(doom-cli-byte-compile nil 'recompile))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue