Documentation
¶
Overview ¶
Package cli wires the demografix command tree and owns process exit codes and user-facing error rendering.
Index ¶
Constants ¶
View Source
const ( ExitOK = 0 ExitGeneric = 1 ExitUsage = 2 ExitAuth = 3 ExitSubscript = 4 ExitValidation = 5 ExitRateLimit = 6 ExitTransport = 7 )
Exit codes. These are part of the CLI contract.
Variables ¶
This section is empty.
Functions ¶
func Execute ¶
func Execute() int
Execute runs the CLI and returns a process exit code. SIGINT/SIGTERM cancel the command context so a long enrich run can flush partial output.
func UsageErrorf ¶
UsageErrorf builds a usage error.
Types ¶
Click to show internal directories.
Click to hide internal directories.