Documentation
¶
Index ¶
Constants ¶
View Source
const (
DefaultExitCodeOnError = 128
)
Error code for non exec error
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cmd ¶ added in v0.3.1
type Cmd struct {
ExecCmd *exec.Cmd
// stdin/stdout set when created with tty enabled
TtyInput io.WriteCloser
TtyOutput io.ReadCloser
// contains filtered or unexported fields
}
func (*Cmd) Release ¶ added in v0.3.1
Release process if wait was not called and you want to terminate it
type Spec ¶
type Spec struct {
Context context.Context
// set working directory when running the command
Dir string
Env map[string]string
Command []string
SysProcAttr *syscall.SysProcAttr
ExtraLookupPaths []string
// stdin/stdout/stderr streams, not used if Tty is set to true
Stdin io.Reader
Stdout, Stderr io.Writer
Tty bool
}
Click to show internal directories.
Click to hide internal directories.