Versions in this module Expand all Collapse all v0 v0.1.3 Feb 23, 2020 Changes in this version + const SigIntDelay + const SigKillDelay + func ArgToCmd(ctx context.Context, args ...[]string) (cmds []*std_exec.Cmd) + func CmdToString(cmds ...*std_exec.Cmd) string + type CommonExecutor struct + func (c CommonExecutor) Buffered(ctx context.Context, cmds ...*std_exec.Cmd) (stdout *bytes.Buffer, stderr *bytes.Buffer, res PipelineResult, err error) + func (c CommonExecutor) Command(name string, arg ...string) *std_exec.Cmd + func (c CommonExecutor) CommandContext(ctx context.Context, name string, arg ...string) *std_exec.Cmd + func (c CommonExecutor) Pty(cmd *std_exec.Cmd) error + func (c CommonExecutor) Standard(ctx context.Context, stdout io.Writer, stderr io.Writer, stdin io.Reader, ...) (res PipelineResult, err error) + type Executor interface + Buffered func(ctx context.Context, cmds ...*std_exec.Cmd) (stdout *bytes.Buffer, stderr *bytes.Buffer, res PipelineResult, err error) + Command func(name string, arg ...string) *std_exec.Cmd + CommandContext func(ctx context.Context, name string, arg ...string) *std_exec.Cmd + Pty func(cmd *std_exec.Cmd) error + Standard func(ctx context.Context, stdout io.Writer, stderr io.Writer, stdin io.Reader, ...) (res PipelineResult, err error) + type PipelineResult struct + Cmd map[*std_exec.Cmd]Result + type Result struct + Code int + Err error + Pgid int + Pid int + Stderr *bytes.Buffer + Stdout *bytes.Buffer