Documentation
¶
Overview ¶
Package cli is tk's Cobra command tree, exit codes, signals, and output rules. Handlers return errors; cmd/tk/main.go is the sole place that formats and exits.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExitCodeFromError ¶
ExitCodeFromError maps err to a process exit code (nil → 0).
func SignalExitCode ¶
func SignalExitCode() int
SignalExitCode returns 128+signum when interrupted, else 0 (checked before error map).
Types ¶
type App ¶
type App struct {
Ctx *cue.Context
ConfigDir string
StateDir string
// AgentdexOpts are extra Open options for skill install/list/uninstall
// (tests inject catalog dir, look path, env; production leaves nil).
AgentdexOpts []agentdex.Option
}
App carries process-wide CUE context and XDG config/state directories.
Source Files
¶
- board.go
- claim.go
- commit.go
- create.go
- deps.go
- doctor.go
- edit.go
- engine.go
- exit.go
- filetext.go
- get.go
- id.go
- idresolve.go
- lens.go
- list.go
- mark.go
- meta.go
- next.go
- osguard_unix.go
- output.go
- query.go
- reorder.go
- root.go
- scope.go
- scope_forget.go
- scope_import.go
- scope_init.go
- scope_list.go
- scope_rebind.go
- scope_rename.go
- search.go
- signal.go
- skill.go
- status.go
- sync.go
- writeutil.go
Click to show internal directories.
Click to hide internal directories.