Documentation
¶
Index ¶
Constants ¶
View Source
const ( ExitOK = 0 ExitError = 1 ExitUsage = 2 ExitAuth = 3 ExitTransient = 4 )
Exit codes per the #190 contract:
0 — success 1 — generic API / runtime error 2 — CLI usage error (wrong args, unknown flag) 3 — auth failure (HTTP 401 / 403) 4 — transient / retryable (HTTP 429, 5xx)
Variables ¶
View Source
var ( Version = "" Commit = "" BuildDate = "" )
Version information - set via ldflags at build time. Falls back to Go module version from debug.ReadBuildInfo() when installed via `go install`.
Functions ¶
func Execute ¶
func Execute() error
Execute runs the root command and exits with the appropriate code.
func GetPrinter ¶ added in v1.3.0
GetPrinter returns a Printer based on current flags. Returns NullPrinter when --quiet is set, otherwise the format-appropriate printer.
Types ¶
This section is empty.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.