Skip to main content

run_direct

Function run_direct 

Source
pub fn run_direct<Args, F>(args: &Args, logic: F) -> RUMResult<()>
where Args: RUMCLIParser, F: Fn(&Args) -> RUMResult<()>,
Expand description

Runs a closure (or any Fn) that owns the whole lifecycle of the program. Unlike CliProcessor::Direct, the closure is not boxed, so it can borrow from its environment.