Function rmenu::reasonable_main [] [src]

pub fn reasonable_main(options: &[Command], config: &Config) -> Result<()>

A reasonable main function. Commands are filtered by command.key().starts_with(input), then selected_command.command() is executed.