Documentation
¶
Index ¶
Constants ¶
View Source
const ( ExitGeneral = 1 // unclassified error ExitBadArgs = 2 // bad arguments or flag misuse ExitAuthError = 3 // authentication failure ExitAPIError = 4 // API call failure ExitNotFound = 5 // resource not found )
Exit codes for specific failure modes. Commands should return errors that carry one of these codes so scripts can distinguish failure categories.
Variables ¶
This section is empty.
Functions ¶
func GoneError ¶ added in v0.7.124
GoneError returns a formatted error when err contains a 410 Gone status, which means the server no longer supports this version of the CLI. Returns nil for any other error. Use at the top of main's error path to intercept 410s before generic handling.
func NewRootCmd ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.