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.
Source Files
¶
- abort.go
- absorb.go
- bottom.go
- checkout.go
- complete.go
- completion.go
- continue.go
- create.go
- doctor.go
- down.go
- fold.go
- get.go
- init.go
- install.go
- log.go
- log_long.go
- log_short.go
- mcp.go
- merge.go
- modify.go
- move.go
- navigate.go
- pop.go
- pr.go
- rename.go
- reorder.go
- restack.go
- root.go
- submit.go
- sync.go
- top.go
- undo.go
- untrack.go
- up.go
- update.go
- version.go