Skip to main content

dispatch

Function dispatch 

Source
pub async fn dispatch(command: Command, ctx: RunContext) -> Result<i32>
Expand description

Dispatch a parsed CLI command to the appropriate handler. Returns an exit code.

ยงErrors

Returns an error if the dispatched handler fails.