mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Polish progress output during 'doom update'
This commit is contained in:
@ -194,7 +194,7 @@ declaration) or dependency thereof that hasn't already been."
|
|||||||
(setq output (doom--commit-log-between ref target-ref)))
|
(setq output (doom--commit-log-between ref target-ref)))
|
||||||
(doom--same-commit-p target-ref (straight-vc-get-commit type local-repo)))
|
(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)))
|
(let ((repo (straight--repos-dir local-repo)))
|
||||||
(ignore-errors
|
(ignore-errors
|
||||||
(delete-directory repo 'recursive))
|
(delete-directory repo 'recursive))
|
||||||
@ -213,7 +213,7 @@ declaration) or dependency thereof that hasn't already been."
|
|||||||
(puthash package t packages-to-rebuild)
|
(puthash package t packages-to-rebuild)
|
||||||
(unless (string-empty-p output)
|
(unless (string-empty-p output)
|
||||||
(print! (start "\033[K(%d/%d) Updating %s...") i total local-repo)
|
(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)")
|
(print! (success "\033[K(%d/%d) %s updated (%s -> %s)")
|
||||||
i total local-repo
|
i total local-repo
|
||||||
(doom--abbrev-commit ref)
|
(doom--abbrev-commit ref)
|
||||||
|
Reference in New Issue
Block a user