mirror of
https://github.com/coder/coder.git
synced 2026-10-25 09:42:55 +08:00
fix: Use stdin/out defined in command (#3199)
This commit is contained in:
+2
-2
@@ -30,7 +30,7 @@ func update() *cobra.Command {
|
||||
return err
|
||||
}
|
||||
if !workspace.Outdated && !alwaysPrompt {
|
||||
_, _ = fmt.Printf("Workspace isn't outdated!\n")
|
||||
_, _ = fmt.Fprintf(cmd.OutOrStdout(), "Workspace isn't outdated!\n")
|
||||
return nil
|
||||
}
|
||||
template, err := client.Template(cmd.Context(), workspace.TemplateID)
|
||||
@@ -74,7 +74,7 @@ func update() *cobra.Command {
|
||||
if !ok {
|
||||
break
|
||||
}
|
||||
_, _ = fmt.Printf("Output: %s\n", log.Output)
|
||||
_, _ = fmt.Fprintf(cmd.OutOrStdout(), "Output: %s\n", log.Output)
|
||||
}
|
||||
return nil
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user