Documentation
¶
Overview ¶
Package cli is the tori command tree: a cobra hierarchy wrapped with charmbracelet/fang for polished help, version, and error rendering (spec §12). The commands are thin — they parse flags, build an x-cli engine, call the archive/render packages, and map the typed errors those return onto stable exit codes (spec §6). No scraping or rendering logic lives here.
Index ¶
Constants ¶
View Source
const ( CodeOK = 0 CodeUsage = 1 CodePartial = 2 CodeNeedsAuth = 4 CodeBlocked = 5 CodeNotFound = 6 CodeInterrupt = 130 )
Exit codes (spec §6). The CLI maps the engine's typed errors onto these so a script can branch on the outcome.
Variables ¶
View Source
var ( Version = "dev" Commit = "none" Date = "unknown" )
Build metadata, overridden at release time via -ldflags -X github.com/tamnd/tori/cli.Version=... (and Commit/Date). The defaults are what a plain `go build` or `go install` reports.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.