Capture returns a copy of the Cmd with Stdout and Stderr set.
(stdout, stderr io.Writer)
| 78 | |
| 79 | // Capture returns a copy of the Cmd with Stdout and Stderr set. |
| 80 | func (cmd Cmd) Capture(stdout, stderr io.Writer) Cmd { |
| 81 | cmd.Stdout = stdout |
| 82 | cmd.Stderr = stderr |
| 83 | return cmd |
| 84 | } |
| 85 | |
| 86 | // Read returns a copy of the Cmd with Stdin set. |
| 87 | func (cmd Cmd) Read(stdin io.Reader) Cmd { |