Skip to main content

Module cli

Module cli 

Source
Expand description

CLI layer. Parses arguments, calls into the SDK, formats output.

Modules§

args
Top-level CLI argument parsing. Uses clap derive for the subcommand enum; each subcommand owns its own arg struct under cmd::<name>.
cmd
Per-subcommand implementations. Each builds a request from clap args, 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.

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.