Documentation
¶
Index ¶
Constants ¶
View Source
const ( // IgnoreStdout is option for executil.Run() which should be passed if // stdout data should be ignored. IgnoreStdout option = iota // IgnoreStderr is option for executil.Run() which should be passed if // stderr data should be ignored. IgnoreStderr )
Variables ¶
This section is empty.
Functions ¶
func GetExitStatus ¶
GetExitStatus returns 0 if the specified error is not about of exit status. Otherwise, will be returned actual exit status.
func IsExitError ¶
IsExitError check that the specified error is an error about exit status.
Types ¶
type CommandWithArgs ¶
type CommandWithArgs interface {
GetArgs() []string
}
type Error ¶
type Error struct {
// RunErr is a original occurred error.
RunErr error
// Cmd is a original executed command.
// can be *exec.Command or lexec.Command
Cmd interface{}
// Output is a combined output of executing command.
Output []byte
}
Error records the actual combined output of executed command, original error and executed cmd.
func (*Error) HierarchicalError ¶
HierarchicalError returns hierarchical string representation using karma package.
Click to show internal directories.
Click to hide internal directories.