Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ExitError ¶
type ExitError struct {
Err error
// 2 for a usage error (bad arg count, unknown flag, unknown subcommand, invalid argument or flag
// value) and 3 for a precondition failure like red CI or uncommitted changes.
Code int
}
ExitError carries a non-default exit code, distinct from the general-error code cobra otherwise produces for a RunE error.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.