Documentation ¶
Index ¶
Constants ¶
View Source
const ( ExitCodeOK int = 0 ExitCodeError int = iota )
Exit codes are int values for the exit code that shell interpreter can interpret
Variables ¶
This section is empty.
Functions ¶
func HandleExit ¶
HandleExit returns int value that shell interpreter can interpret as the exit code If err has error message, it will be displayed to stderr This function is heavily inspired by urfave/cli.HandleExitCoder
Types ¶
type ErrorFormatter ¶
ErrorFormatter is the interface for format
Click to show internal directories.
Click to hide internal directories.