Refactor autoload generator bootstrappers

This commit is contained in:
Henrik Lissner 2020-01-01 13:31:40 -05:00
parent 4a53f0818d
commit 4f676bd218
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
5 changed files with 48 additions and 63 deletions

View file

@ -10,9 +10,9 @@ between HEAD and FETCH_HEAD. This can take a while.
This excludes packages whose `package!' declaration contains a non-nil :freeze
or :ignore property."
(straight-check-all)
(doom-cli-reload-autoloads 'core)
(doom-cli-reload-core-autoloads)
(when (doom-cli-packages-update)
(doom-cli-reload-autoloads 'package))
(doom-cli-reload-package-autoloads))
t)
(defcli! (build b)
@ -23,7 +23,7 @@ This ensures that all needed files are symlinked from their package repo and
their elisp files are byte-compiled. This is especially necessary if you upgrade
Emacs (as byte-code is generally not forward-compatible)."
(when (doom-cli-packages-build (not rebuild-p))
(doom-cli-reload-autoloads 'package))
(doom-cli-reload-package-autoloads))
t)
(defcli! (purge p)
@ -46,7 +46,7 @@ list remains lean."
(not norepos-p)
(not nobuilds-p)
regraft-p)
(doom-cli-reload-autoloads 'package))
(doom-cli-reload-package-autoloads))
t)
;; (defcli! rollback () ; TODO doom rollback