Documentation
¶
Index ¶
Constants ¶
View Source
const ( ExitSuccess = 0 ExitError = 1 ExitUsage = 2 ExitAuth = 3 ExitNotFound = 4 ExitConflict = 5 )
Variables ¶
This section is empty.
Functions ¶
func ExitCodeFromError ¶
ExitCodeFromError maps an error to a structured exit code.
func HTTPStatusToExitCode ¶
HTTPStatusToExitCode maps HTTP status codes to exit codes. 4xx -> 10-59, 5xx -> 60-99.
func RootCommand ¶
RootCommand constructs the root CLI command with all subcommands.
func RootUsageFunc ¶
RootUsageFunc renders grouped help for the root gplay command.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.