Skip to main content

dispatch_with_argv

Function dispatch_with_argv 

Source
pub async fn dispatch_with_argv(
    app: App,
    argv: Vec<OsString>,
) -> Result<(), Box<dyn Error + Send + Sync>>
Expand description

Same as dispatch but argv is passed explicitly instead of read from the process. Lets tests exercise the routing without spawning a subprocess. User code should call dispatch (which reads std::env::args_os() and delegates here).

The dispatch order is the same as dispatch: the app’s own commands (AppBuilder::command) and the plugin-contributed ones first, via umbral_core::cli::dispatch_with_app_commands, then the built-in subcommand set (serve / migrate / etc.).