Skip to main content

run_cli_from

Function run_cli_from 

Source
pub fn run_cli_from<T, I, D, M, F>(
    spec: &'static ToolSpec,
    env: &ProcessEnv,
    argv: I,
    doctor: &D,
    metadata_command: M,
    run: F,
) -> i32
Expand description

Parse CLI arguments from a caller-provided argv, route shared metadata commands, and run the domain handler.

env carries the process-edge environment reads (agent tokens, HOME) performed in the binary’s main (REPO_INVARIANTS.md #5).