Skip to main content

Module cli

Module cli 

Source
Expand description

CLI layer. Resolves argv against the closed-world registry, calls into the SDK, and formats output.

Modules§

args
Turn one resolved cli-spec-v1 invocation into the typed command the async dispatcher runs.
cmd
Per-subcommand implementations. Each takes the argument struct the CLI registry projected for it, calls into the SDK, and emits a response envelope.
output
Output glue. The single seam through which CLI subcommands write their one line of JSON to stdout.
spec
The closed-world cli-spec-v1 registry for afhttp.

Functions§

run
Binary entry point. Successful structured responses exit zero; structured errors carry their stable AFDATA shape on the selected output route and exit nonzero.