Skip to main content

handle

Function handle 

Source
pub fn handle(
    command: &str,
    output: &str,
    exit_code: i32,
    _crp_mode: CrpMode,
) -> String
Expand description

Compresses shell command output using the unified compression pipeline. Delegates to the same exit-code-aware logic used by the CLI, so a failed command (exit_code != 0) is preserved verbatim and successful output is compressed consistently (excluded_commands, structural routing, terse). #810.