CommandContext returns a Cmd instance which can be used to run a single command. The provided context is used to kill the process if the context becomes done before the command completes on its own. For example, a timeout can be set in the context.
(ctx context.Context, cmd string, args ...string)
| 41 | // before the command completes on its own. For example, a timeout can be set in |
| 42 | // the context. |
| 43 | CommandContext(ctx context.Context, cmd string, args ...string) Cmd |
| 44 | } |
| 45 | |
| 46 | type Cmd interface { |
no outgoing calls