Cobra.Command.SetOutput is depracated (#1554)
This commit is contained in:
parent
164cfab820
commit
d32798769c
@ -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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user