Skip to main content

run

Function run 

Source
pub async fn run(argv: Vec<String>) -> Result<i32>
Expand description

Entry point: invoke a plugin-provided subcommand. argv is the captured external_subcommand args INCLUDING the verb itself (clap’s convention). Returns the process exit code.

§Errors

Returns an error if no plugin claims the verb, the plugin fails to load, or the plugin panics during dispatch. Non-zero ExitInfo.exit_code is surfaced as Ok(i32), not as Err.