InheritOutput sets cmd's output to write to the current process's stdout and stderr
(cmd Cmd)
| 77 | |
| 78 | // InheritOutput sets cmd's output to write to the current process's stdout and stderr |
| 79 | func InheritOutput(cmd Cmd) { |
| 80 | cmd.SetStderr(os.Stderr) |
| 81 | cmd.SetStdout(os.Stdout) |
| 82 | } |
| 83 | |
| 84 | // RunLoggingOutputOnFail runs the cmd, logging error output if Run returns an error |
| 85 | func RunLoggingOutputOnFail(cmd Cmd, retries int) error { |