Skip to main content

run_with_display_error_handler

Function run_with_display_error_handler 

Source
pub fn run_with_display_error_handler<F, E>(
    command: &str,
    output: JsonOutput,
    run: F,
) -> i32
where F: FnOnce() -> Result<i32, E>, E: Display,
Expand description

Run a fallible CLI closure with shared fatal rendering for any displayable error type.