Documentation ¶ Index ¶ type Command func New() Command func (c Command) Run(ctx context.Context, cmd string, opts ...Option) error type Option func WithEnv(env []string) Option func WithStdout(stdout io.Writer) Option type Service Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Command ¶ type Command struct{} func New ¶ func New() Command func (Command) Run ¶ func (c Command) Run(ctx context.Context, cmd string, opts ...Option) error type Option ¶ type Option func(options *runOptions) func WithEnv ¶ func WithEnv(env []string) Option func WithStdout ¶ func WithStdout(stdout io.Writer) Option type Service ¶ type Service interface { Run(ctx context.Context, cmd string, options ...Option) error } Source Files ¶ View all Source files localexec.gowriter.go Click to show internal directories. Click to hide internal directories.