Versions in this module Expand all Collapse all v0 v0.8.0 Jul 3, 2026 Changes in this version + const ExitCheck + const ExitOK + const ExitRefused + const ExitRuntime + const ExitUsage + const SchemaVersion + var Commit = "none" + var Date = "unknown" + var Version = "dev" + func RenderError(c *Context, err error) + func Run(name, description string, cli any, g *Globals, extra ...kong.Option) int + type Context struct + Color bool + Command string + Format OutputFormat + Stderr io.Writer + Stdout io.Writer + Verbose bool + func NewContext(g *Globals, command string) *Context + func (c *Context) Accent(s string) string + func (c *Context) Badge(kind, label string) string + func (c *Context) Diagnostics(data any, diags []Diagnostic, text func()) error + func (c *Context) EmitJSON(v any) error + func (c *Context) Failure(s string) string + func (c *Context) Faint(s string) string + func (c *Context) Glyphs() Glyph + func (c *Context) Info(s string) string + func (c *Context) JSON() bool + func (c *Context) KV(pairs ...[2]string) + func (c *Context) Link(text, url string) string + func (c *Context) List(items ...string) + func (c *Context) Muted(s string) string + func (c *Context) NewProgress(total int) *Progress + func (c *Context) NewSpinner(msg string) *Spinner + func (c *Context) OK(s string) string + func (c *Context) Panel(title string, lines ...string) + func (c *Context) Result(data any, text func()) error + func (c *Context) Rule(label string) + func (c *Context) Severity(s string) string + func (c *Context) Subtitle(s string) + func (c *Context) Success(s string) string + func (c *Context) Table(headers []string, rows [][]string) + func (c *Context) Title(s string) + func (c *Context) Tree(root TreeNode) + func (c *Context) Warning(s string) string + type Diagnostic struct + Col int + File string + Line int + Message string + Rule string + Severity string + type Envelope struct + Command string + Data any + Diagnostics []Diagnostic + Error *Error + Exit int + OK bool + SchemaVersion string + type Error struct + Code string + Exit int + Hint string + Message string + func Fail(exit int, code, message, hint string) *Error + func (e *Error) Error() string + type Globals struct + NoColor bool + Output string + Verbose bool + type Glyph struct + Arrow string + Bullet string + Dot string + Err string + Info string + OK string + Pending string + TBranch string + TLast string + TPipe string + TSpace string + Title string + Warn string + type MenuCmd struct + func (MenuCmd) Run(c *Context, k *kong.Kong) error + type OutputFormat string + const FormatJSON + const FormatText + type Progress struct + func (p *Progress) Done(msg string) + func (p *Progress) Set(n int, label string) + type SchemaArg struct + Enum []string + Help string + Name string + Required bool + Type string + type SchemaCmd struct + func (SchemaCmd) Run(c *Context, k *kong.Kong) error + type SchemaCommand struct + Args []SchemaArg + Flags []SchemaFlag + Help string + Path []string + type SchemaDoc struct + Commands []SchemaCommand + GlobalFlags []SchemaFlag + SchemaVersion string + Tool string + Version string + func BuildSchema(k *kong.Kong, tool, version string) SchemaDoc + type SchemaFlag struct + Default string + Enum []string + Help string + Name string + Required bool + Short string + Type string + type Spinner struct + func (s *Spinner) Fail(msg string) + func (s *Spinner) Start() + func (s *Spinner) Stop() + func (s *Spinner) Success(msg string) + func (s *Spinner) Update(msg string) + type TreeNode struct + Children []TreeNode + Label string + type VersionCmd struct + func (VersionCmd) Run(c *Context) error