Cobra.Command.SetOutput is depracated (#1554)

This commit is contained in:
iwankgb 2020-12-13 01:01:31 +01:00 committed by GitHub
parent 164cfab820
commit d32798769c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
}