wrapExecCommand wraps an exec.Cmd so that it satisfies the ExecCommand interface so it can be used with Exec.
(c *exec.Cmd)
| 67 | // wrapExecCommand wraps an exec.Cmd so that it satisfies the ExecCommand |
| 68 | // interface so it can be used with Exec. |
| 69 | func wrapExecCommand(c *exec.Cmd) ExecCommand { |
| 70 | return &osExecCommand{Cmd: c} |
| 71 | } |
| 72 | |
| 73 | // osExecCommand is a layer over an exec.Cmd that satisfies the ExecCommand |
| 74 | // interface. |