Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Result ¶
type Result struct {
Command string // Include final command that was executed
Stdout bytes.Buffer
Stderr bytes.Buffer
DebugData *bytes.Buffer // only available when debug mode is enabled
// contains filtered or unexported fields
}
Result contains the result of a command execution.
func (*Result) GetExitCode ¶
GetExitCode returns the exit code of the command.
func (*Result) GetExitError ¶
GetExitError returns the exit error if any.
func (*Result) SetExitError ¶
SetExitError sets the exit error (internal use only).
Click to show internal directories.
Click to hide internal directories.