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.
connect
The host every client command talks to, resolved once per run.
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.
token_source
What --token-secret accepts, and the one source afhttp reads itself.

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.