Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Executor ¶ added in v0.1.0
type Executor interface {
SetCwd(cwd string) Executor
SetEnv(env []string) Executor
SetEnvVar(name, value string) Executor
SetOutputPrefix(prefix string) Executor
SetPTY(enabled bool) Executor
AddOutputFilter(substring string) Executor
Run() *Result
Capture() *Result
CaptureAndTrim() *Result
}
Executor prepares and run a command execution
type Result ¶ added in v0.8.0
type Result struct {
Code int // code returned by the process
Error error // error about the process launch and exit
LaunchError error // error about the process launch
Output string // command output if captured, otherwise empty
}
Result represents the result of a command execution
Click to show internal directories.
Click to hide internal directories.