brane

Function run

Source
pub(crate) async fn run(options: Cli) -> Result<(), CliError>
Expand description

Edited: now returning CliErrors.

Runs one of the subcommand as given on the Cli.

Arguments

  • options: The struct with (parsed) Cli-options and subcommands.

Returns
Nothing if the subcommand executed successfully (they are self-contained), or a CliError otherwise.