Cmd abstracts over running a command somewhere, this is useful for testing
| 34 | |
| 35 | // Cmd abstracts over running a command somewhere, this is useful for testing |
| 36 | type Cmd interface { |
| 37 | Run() error |
| 38 | // Each entry should be of the form "key=value" |
| 39 | SetEnv(...string) Cmd |
| 40 | SetStdin(io.Reader) Cmd |
| 41 | SetStdout(io.Writer) Cmd |
| 42 | SetStderr(io.Writer) Cmd |
| 43 | } |
| 44 | |
| 45 | // Cmder abstracts over creating commands |
| 46 | type Cmder interface { |
no outgoing calls
no test coverage detected