CommandExecutor abstracts exec.CommandContext to allow dependency injection.
| 7 | |
| 8 | // CommandExecutor abstracts exec.CommandContext to allow dependency injection. |
| 9 | type CommandExecutor interface { |
| 10 | CommandContext(ctx context.Context, name string, args ...string) *exec.Cmd |
| 11 | } |
| 12 | |
| 13 | // defaultExecutor is the default implementation using os/exec. |
| 14 | type defaultExecutor struct{} |
no outgoing calls
no test coverage detected