Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrUsage is an error that is caused by an incorrect usage by the user. ErrUsage = errors.New("usage error") // ErrPipeline is an error that is caused by an action aborting a pipeline. ErrPipeline = errors.New("pipeline error") )
Functions ¶
func AsFlagUsageError ¶
AsFlagUsageError returns a flag ErrUsage with the given error.
func AsFlagUsageErrorf ¶
AsFlagUsageErrorf returns a flag ErrUsage with the given message.
func AsUsageError ¶
AsUsageError returns the given error wrapped in a ErrUsage.
func AsUsageErrorf ¶
AsUsageErrorf returns a ErrUsage with the given format
func NewErrorHandler ¶
NewErrorHandler will print the CLI help and exit with code 2 if the given error is a ErrUsage.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.