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