Skip to content

Commit

Permalink
Cobra.Command.SetOutput is depracated (#1554)
Browse files Browse the repository at this point in the history
  • Loading branch information
iwankgb committed Dec 13, 2020
1 parent 164cfab commit d327987
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/commands/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,8 @@ func (e *Executor) initRun() {
}
e.rootCmd.AddCommand(e.runCmd)

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

e.initRunConfiguration(e.runCmd)
}
Expand Down

0 comments on commit d327987

Please sign in to comment.