Documentation
¶
Overview ¶
Package cli implements the agentenv command-line interface — the command registry, one-shot handlers (commands.go), long-running modes (session.go), the out-of-band socket client (ctl.go), and shared helpers (cli.go). main.go calls Run() after handling the sandbox re-exec branch.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ExitError ¶
type ExitError int
ExitError is what a handler returns to ask cli.Run to exit with a specific non-zero code AFTER all deferred cleanup (notably the repo flock release) has run. cmdExec uses this to transparently propagate the inner command's status without calling os.Exit (which would bypass the defers).
Click to show internal directories.
Click to hide internal directories.