cmd

package
v1.43.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 4, 2026 License: MIT Imports: 58 Imported by: 0

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 GetFormat

func GetFormat() string

func GetPrinter added in v1.3.0

func GetPrinter() printer.Printer

GetPrinter returns a Printer based on current flags. Returns NullPrinter when --quiet is set, otherwise the format-appropriate printer.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL