Documentation
¶
Overview ¶
Package cmd wires the cobra command tree. It contains no business logic: each file parses flags, decides between interactive and plain output, calls pkg/app and renders the result.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Execute ¶
func Execute() int
Execute runs the CLI with the process streams and returns the exit code.
func NewRootCmd ¶
NewRootCmd builds the command tree bound to the given streams.
Types ¶
type Runtime ¶
type Runtime struct {
Globals Globals
Streams Streams
// Interactive is true when prompts and TUIs may be used.
Interactive bool
Runner exec.Runner
Git *git.Client
Log *slog.Logger
// Report prints every human facing line (docs/style.md).
Report *ui.Reporter
// contains filtered or unexported fields
}
Runtime is everything a command needs, built once after flag parsing.