Documentation
¶
Overview ¶
Package cli implements argument parsing and terminal presentation. It does not own process signals or terminate the process.
Index ¶
Constants ¶
View Source
const ( ExitOK = 0 ExitValidation = 1 ExitOperational = 2 ExitPresentation = 3 ExitInterrupted = 130 )
Process exit codes. Signals other than SIGINT map to 128+signal number.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Interrupted ¶
Interrupted is the cancellation cause main records when a signal arrives.
func (Interrupted) Error ¶
func (i Interrupted) Error() string
func (Interrupted) ExitCode ¶
func (i Interrupted) ExitCode() int
ExitCode follows the shell convention of 128 plus the signal number.
Click to show internal directories.
Click to hide internal directories.