Skip to content

Commit

Permalink
cli: don't repeat "Executing..." line on restart
Browse files Browse the repository at this point in the history
  • Loading branch information
hlissner committed May 24, 2021
1 parent 7ec9221 commit df3c221
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
17 changes: 9 additions & 8 deletions core/core-cli.el
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,15 @@ Environment variables:
(doom-cli-execute "help")
(let ((start-time (current-time)))
(run-hooks 'doom-cli-pre-hook)
(print! (start "Executing 'doom %s' %s")
(string-join
(cons (or (ignore-errors
(doom-cli-name (doom-cli-get command)))
command)
args)
" ")
(format-time-string "%Y-%m-%d %H:%M:%S"))
(unless (getenv "__DOOMRESTART")
(print! (start "Executing 'doom %s' %s")
(string-join
(cons (or (ignore-errors
(doom-cli-name (doom-cli-get command)))
command)
args)
" ")
(format-time-string "%Y-%m-%d %H:%M:%S")))
(print-group!
(when-let (result (apply #'doom-cli-execute command args))
(run-hooks 'doom-cli-post-hook)
Expand Down
2 changes: 1 addition & 1 deletion modules/config/literate/autoload.el
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ byte-compiled from.")
(with-temp-file cache)
(if doom-interactive-p t
(message "Restarting..." )
(throw 'exit "__NOTANGLE=1 $@"))))))
(throw 'exit "__DOOMRESTART=1 __NOTANGLE=1 $@"))))))

;;;###autoload
(defalias '+literate/reload #'doom/reload)
Expand Down

0 comments on commit df3c221

Please sign in to comment.