Skip to content

Commit 82aeee3

Browse files
committed
Cobra.Command.SetOutput is depracated
1 parent b79e0c5 commit 82aeee3

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
@@ -287,7 +287,8 @@ func (e *Executor) initRun() {
287287
}
288288
e.rootCmd.AddCommand(e.runCmd)
289289

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

292293
e.initRunConfiguration(e.runCmd)
293294
}

0 commit comments

Comments
 (0)