feat(cli): allow defcli! in ci.el

A project may provide a ci.el to config bin/doom's CI commands. With
this, users can also define their own 'doom ci' subcommands from there.
This commit is contained in:
Henrik Lissner 2022-07-29 12:54:49 +02:00
parent 04a09128d4
commit a2d2206797
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -257,10 +257,11 @@ Note: warnings are not considered failures.")
(local-config (local-config
(car (or (doom-glob repo-root "ci.el") (car (or (doom-glob repo-root "ci.el")
(doom-glob doom-private-dir "ci.el"))))) (doom-glob doom-private-dir "ci.el")))))
(load local-config nil t t) (defgroup! :prefix '(doom ci)
(load local-config nil t t))
(print! (item "Loaded %S") local-config))) (print! (item "Loaded %S") local-config)))
(defcli! ci () (defcli! ci (&args _)
"Commands that automate development processes." "Commands that automate development processes."
:partial t) :partial t)