Skip to main content

Module cli

Module cli 

Source
Expand description

CLI surface: command-tree definition and dispatch.

A clap derive tree owns flag parsing and the generated help.

The command tree lives in [args]; the per-command handlers live in [commands], grouped by concern. This module is the thin coordinator: parse, dispatch, and the shared context/iteration helpers the handlers reuse.

Functions§

run
Parse process arguments, initialize the harness descriptor registry (every layer, including an optional --harness-file), dispatch to the selected subcommand, and return its result. Called by the binary entry point.