Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Command ¶
type Command interface {
PrintableCommandArgs() string
Run() error
RunAndReturnExitCode() (int, error)
RunAndReturnTrimmedOutput() (string, error)
RunAndReturnTrimmedCombinedOutput() (string, error)
Start() error
Wait() error
}
Command ...
type ExitStatusError ¶
type ExitStatusError struct {
// contains filtered or unexported fields
}
ExitStatusError ...
func (*ExitStatusError) Error ¶
func (e *ExitStatusError) Error() string
Error returns the formatted error message. Does not include the original error message (`exit status 1`).
func (*ExitStatusError) Reason ¶
func (e *ExitStatusError) Reason() error
Reason returns the user-friendly error, to be used by errorutil.ErrorFormatter.
func (*ExitStatusError) Unwrap ¶
func (e *ExitStatusError) Unwrap() error
Unwrap is needed for errors.Is and errors.As to work correctly.
Click to show internal directories.
Click to hide internal directories.