Documentation
¶
Index ¶
- Constants
- type Command
- type Option
- func Async() Option
- func WithCancel(fn func(*os.Process) error) Option
- func WithContext(ctx context.Context) Option
- func WithDir(dir string) Option
- func WithEnv(envs ...string) Option
- func WithInput(inputs ...io.Reader) Option
- func WithMaxBuffer(n int) Option
- func WithStderr(w io.Writer) Option
- func WithStdout(w io.Writer) Option
- func WithWaitDelay(d time.Duration) Option
- type PrintFunc
Constants ¶
View Source
const ErrorCodeCmd string = "CMD_ERROR"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Option ¶
type Option func(*cmd)
func WithContext ¶
func WithMaxBuffer ¶ added in v0.3.13
func WithStderr ¶ added in v0.3.13
func WithStdout ¶ added in v0.3.13
func WithWaitDelay ¶ added in v0.3.13
Click to show internal directories.
Click to hide internal directories.