Documentation
¶
Overview ¶
Package clierrors defines the generated CLI's process-exit contract.
Index ¶
Constants ¶
View Source
const ( ExitOK = 0 ExitRuntime = 1 ExitUsage = 2 ExitAuth = 3 )
Variables ¶
This section is empty.
Functions ¶
func CLIReasonExitCode ¶
func ErrorTypeExitCode ¶
func WithExitCode ¶
Types ¶
type CodedError ¶
type CodedError struct {
// contains filtered or unexported fields
}
func (*CodedError) Error ¶
func (e *CodedError) Error() string
func (*CodedError) ExitCode ¶
func (e *CodedError) ExitCode() int
func (*CodedError) Unwrap ¶
func (e *CodedError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.