Documentation
¶
Overview ¶
Package cli wires the cobra command tree for twoctl. Generated subcommands (one tree per API) are registered from init() functions in sibling files.
Index ¶
Constants ¶
View Source
const ( ExitOK = 0 ExitGeneric = 1 ExitUsage = 2 // bad flags / missing required input ExitAuth = 3 // 401/403 ExitNotFound = 4 // 404 ExitRateLimited = 5 // 429 ExitServer = 6 // 5xx ExitNetwork = 7 // transport-level failure )
Exit codes - documented in README so scripts and agents can branch on them.
Variables ¶
This section is empty.
Functions ¶
func HandleError ¶
func HandleError(err error)
HandleError renders any error returned from a command and exits with the right code. apiErrors are serialised to stderr as JSON so agents can parse them; other errors print as plain text.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.