Polish progress output during 'doom update'

This commit is contained in:
Henrik Lissner 2020-02-01 02:07:24 -05:00
parent e31bb63c14
commit 0dc173a631
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -194,7 +194,7 @@ declaration) or dependency thereof that hasn't already been."
(setq output (doom--commit-log-between ref target-ref)))
(doom--same-commit-p target-ref (straight-vc-get-commit type local-repo)))
((print! (start "\033[K(%d/%d) Re-cloning %s...%s") i total local-repo esc)
((print! (start "\033[K(%d/%d) Re-cloning %s...") i total local-repo esc)
(let ((repo (straight--repos-dir local-repo)))
(ignore-errors
(delete-directory repo 'recursive))
@ -213,7 +213,7 @@ declaration) or dependency thereof that hasn't already been."
(puthash package t packages-to-rebuild)
(unless (string-empty-p output)
(print! (start "\033[K(%d/%d) Updating %s...") i total local-repo)
(print-group! (print! "%s" output)))
(print-group! (print! (indent 2 output))))
(print! (success "\033[K(%d/%d) %s updated (%s -> %s)")
i total local-repo
(doom--abbrev-commit ref)