In returns a copy of the Cmd with the Dir set to dir.
(dir string)
| 72 | |
| 73 | // In returns a copy of the Cmd with the Dir set to dir. |
| 74 | func (cmd Cmd) In(dir string) Cmd { |
| 75 | cmd.Dir = dir |
| 76 | return cmd |
| 77 | } |
| 78 | |
| 79 | // Capture returns a copy of the Cmd with Stdout and Stderr set. |
| 80 | func (cmd Cmd) Capture(stdout, stderr io.Writer) Cmd { |
no outgoing calls