Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCancel = errors.New("ErrCancel")
ErrCancel signals user-initiated cancellation; it maps to its own exit code.
View Source
var ErrSilent = errors.New("ErrSilent")
ErrSilent signals exit code 1 without printing anything. Use it when the subcommand has already printed its own error message.
Functions ¶
func FlagErrorWrap ¶
FlagErrorWrap returns a FlagError wrapping err.
func FlagErrorf ¶
FlagErrorf returns a FlagError wrapping fmt.Errorf(format, args...).
func IsUserCancellation ¶
IsUserCancellation reports whether err represents the user aborting the command. Interactive integrations that add their own interrupt errors should extend this.
Types ¶
Click to show internal directories.
Click to hide internal directories.