fix(cli): wrong-number-of-args error on 'doom upgrade'

When I added call! to the DSL, I forgot to update doom-cli-call calls.
This should quell these errors when running 'doom upgrade':

  x There was an unexpected runtime error
    Message: Wrong number of arguments
    Details: (((cl-struct-doom-cli-context-tags cl-struct-doom-cli-option-...
    Backtrace:
      (doom-cli-call ("doom" "sync" "-u"))
      (cond (packages\? (doom-cli-call sync-cmd) (doom-print (doom-print-...

Amend: 6c0b7e1530
This commit is contained in:
Henrik Lissner 2022-06-19 01:17:06 +02:00
parent 647abad97d
commit 89e02c1c2b
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -31,10 +31,10 @@ following shell commands:
doom clean
doom sync -u"
(let* ((force? (doom-cli-context-suppress-prompts-p context))
(sync-cmd `("doom" "sync" "-u")))
(sync-cmd '("sync" "-u")))
(cond
(packages?
(doom-cli-call sync-cmd)
(call! sync-cmd)
(print! (success "Finished upgrading Doom Emacs")))
((doom-cli-upgrade force? force?)
@ -44,7 +44,7 @@ following shell commands:
(exit! "doom" "upgrade" "-p" (if force? "--force")))
((print! "Doom is up-to-date!")
(doom-cli-call sync-cmd)))))
(call! sync-cmd)))))
;;