Skip to main content

run

Function run 

Source
pub fn run(cli: Cli) -> Result<ExitCode>
Expand description

Dispatch to the selected subcommand, returning the process exit code.

Commands that can partially fail (multi-file batches, validation, order –check) report failure through the returned ExitCode instead of calling std::process::exit, so destructors (tempdir cleanup, buffered writers) always run and the cmd layer stays usable as a library.