Skip to main content

format_command_output

Function format_command_output 

Source
fn format_command_output(
    stdout: &[u8],
    stderr: &[u8],
    code: Option<i32>,
) -> String
Expand description

Stdout, then stderr, then the exit code, which search commands need: grep and rg exit 1 for no match and higher for errors.

浙ICP备2023005800号-2 浙公网安备33010902005384号