Skip to content

Commit d327987

Browse files
authored
Cobra.Command.SetOutput is depracated (#1554)
1 parent 164cfab commit d327987

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/commands/run.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,8 @@ func (e *Executor) initRun() {
284284
}
285285
e.rootCmd.AddCommand(e.runCmd)
286286

287-
e.runCmd.SetOutput(logutils.StdOut) // use custom output to properly color it in Windows terminals
287+
e.runCmd.SetOut(logutils.StdOut) // use custom output to properly color it in Windows terminals
288+
e.runCmd.SetErr(logutils.StdErr)
288289

289290
e.initRunConfiguration(e.runCmd)
290291
}

0 commit comments

Comments
 (0)