RunCommandOptions is the options for the [RunCommand] func.
| 21 | |
| 22 | // RunCommandOptions is the options for the [RunCommand] func. |
| 23 | type RunCommandOptions struct { |
| 24 | Command string |
| 25 | Dir string |
| 26 | Env []string |
| 27 | PosixOpts []string |
| 28 | BashOpts []string |
| 29 | Stdin io.Reader |
| 30 | Stdout io.Writer |
| 31 | Stderr io.Writer |
| 32 | } |
| 33 | |
| 34 | // RunCommand runs a shell command |
| 35 | func RunCommand(ctx context.Context, opts *RunCommandOptions) error { |
nothing calls this directly
no outgoing calls
no test coverage detected