Documentation
¶
Overview ¶
Package cli builds the Iris command-line surface: the cobra noun-verb command tree, the global flags, and the exit-code and --json output contracts. It sits at the top of the product import graph (nothing imports it), and cmd/iris is a thin entrypoint over Execute. Interactive full-screen views live in internal/tui; this package owns command wiring only.
Nearly every command handler is real: it resolves its target, dials the daemon over the unix socket or TCP, and maps the reply onto the contract that framed the surface from the first day -- the categorical exit codes, the single-JSON document on stdout under --json, and the strict separation of log output (stderr) from command output (stdout). A handful of read verbs are still unwired stubs (run show, engine logs, deadletter list, endpoint list/show/remove, pat list/revoke): they carry the daemonStub handler, which reports "no daemon reachable" (exit 3) with guidance to start the engine when nothing answers, and "not implemented" (exit 4) once a daemon does.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Execute ¶
Execute builds the command tree, runs it against args, and returns the process exit code (one of the exit-code categories above). It writes command output to stdout and human-readable errors to stderr, and never calls os.Exit, so it is drivable from tests. cmd/iris is a thin wrapper that passes os.Args[1:] and the process streams and exits with the returned code.
Types ¶
This section is empty.
Source Files
¶
- catalog.go
- ceremony.go
- ceremony_log.go
- ceremony_review.go
- cli.go
- config.go
- connect.go
- daemonclient.go
- daemonpost.go
- dataprovenance.go
- deadletter.go
- declaretarget.go
- endpoint.go
- engine.go
- engineinspect.go
- paint.go
- pat.go
- pipeline.go
- pipelinebuild.go
- pipelinepromote.go
- pipelineshow.go
- plugin.go
- progress.go
- prompt.go
- ps.go
- removeself_unix.go
- run_list.go
- run_logs.go
- runcancel.go
- setup.go
- tree.go
- uninstall.go
- update.go
- workload.go
- workloadshow.go
- workspaceapply.go