Skip to main content

dispatch

Function dispatch 

Source
pub fn dispatch(command: Commands) -> Result<(), Box<dyn Error>>
Expand description

Dispatch a parsed CLI subcommand to its handler.

Public so apr pv executes the identical code path rather than a copy of it. The pv binary keeps shipping under its own name โ€“ that is a decided design, not an oversight โ€“ but the command surface lived in a main.rs, importable by nothing, so apr pv could not exist.

ยงErrors

Propagates whatever the selected subcommand returns.