Thin wrapper around exec.Cmd. Takes care of pipe shutdown by keeping an internal reference to any created pipes. Whenever Cmd.Wait() is called, all created pipes are closed.
| 9 | // keeping an internal reference to any created pipes. Whenever |
| 10 | // Cmd.Wait() is called, all created pipes are closed. |
| 11 | type Cmd struct { |
| 12 | *exec.Cmd |
| 13 | |
| 14 | pipes []io.Closer |
| 15 | } |
| 16 | |
| 17 | func (c *Cmd) Run() error { |
| 18 | c.trace() |
nothing calls this directly
no outgoing calls
no test coverage detected