mirror of
https://github.com/coder/coder.git
synced 2026-09-21 20:51:01 +08:00
fix(cli): remove loading indicator when pinging with verbose logs (#16305)
This was causing some verbose log lines to be prepended with the spinner message, e.g. ``` ◱ Collecting diagnostics...2025-01-28 10:26:27.502 ``` which doesnt look very good. Presumably anyone running it with verbose will know it takes a moment to collect diagnostics first.
This commit is contained in:
+3
-1
@@ -120,7 +120,9 @@ func (r *RootCmd) ping() *serpent.Command {
|
||||
spin := spinner.New(spinner.CharSets[5], 100*time.Millisecond)
|
||||
spin.Writer = inv.Stderr
|
||||
spin.Suffix = pretty.Sprint(cliui.DefaultStyles.Keyword, " Collecting diagnostics...")
|
||||
spin.Start()
|
||||
if !r.verbose {
|
||||
spin.Start()
|
||||
}
|
||||
|
||||
opts := &workspacesdk.DialAgentOptions{}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user