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. Always returns ExitCode::SUCCESS on a structured response (success or error); the response itself carries the success/failure shape on stdout.