Function git_global::subcommands::run[][src]

pub fn run(maybe_subcmd: Option<&str>, config: Config) -> Result<Report>

Run a subcommand, returning a Report.

If None is given for the optional subcommand, run config.default_cmd. Else, try to match the given &str to a known subcommand.