Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
type Error ¶
type Error struct {
ExitCode int
CmdLine string
StdErr string
// contains filtered or unexported fields
}
Returned when the execution was started correctly, but program returned an error
type Flag ¶
type Flag uint
const ( MustPanic Flag //panic on error MustExit //Exit on error Warn //Errors get a 'Warning' level output NoAnnotate //When outputting stdout/stderr, the output is passed through unchanged StdErrInResult //StdErr is included in 'output' PassThrough //Alias for PassThroughStdOut, PassThroughStdErr & PassThroughStdIn PassThroughStdOut //Passes through stdout, output will always be an empty string PassThroughStdErr //StdErr passthrough, error will only contain exit code. PassThroughStdIn TrimSpace FirstLine Strict //does 'set -eu -o pipefail' Verbose )
Click to show internal directories.
Click to hide internal directories.