Skip to main content

run

Function run 

Source
pub fn run() -> Result<(), AppError>
Expand description

Run the CLI. Returns Ok(()) on success.

Unknown subcommands and invalid arguments are handled by clap: it prints a formatted error with suggestions and exits with code 2. Using Cli::try_parse here makes that handoff explicit rather than relying on the implicit process::exit inside Cli::parse.

ยงErrors

Returns AppError on any service failure.