MCPcopy Create free account
hub / github.com/go-task/task / RunCommandOptions

Struct RunCommandOptions

internal/execext/exec.go:23–32  ·  view source on GitHub ↗

RunCommandOptions is the options for the [RunCommand] func.

Source from the content-addressed store, hash-verified

21
22// RunCommandOptions is the options for the [RunCommand] func.
23type 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
35func RunCommand(ctx context.Context, opts *RunCommandOptions) error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected