{"modulePath":"github.com/css521/agentenv","version":"v0.4.0","isLatest":true,"isStandardLibrary":false,"goos":"linux","goarch":"amd64","docs":"# package cli\n\nPackage 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.\n\n## Functions\n\n```go\nfunc Run(version string) int\n```\nRun parses os.Args\\[1:], dispatches, and returns the exit code main should surface. It does NOT call os.Exit itself — that bypasses deferred Release() of the repo lock (and any other defers a handler set up). main() is the only place allowed to terminate the process.\n\n## Types\n\n```go\ntype ExitError int\n```\nExitError 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).\n\n```go\nfunc (e ExitError) Error() string\n```\n\n","path":"github.com/css521/agentenv/internal/cli","name":"cli","synopsis":"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).","isRedistributable":true}
