Skip to main content

compress_output

Function compress_output 

Source
pub fn compress_output(command: &str, output: &str) -> Option<String>
Expand description

Compress output of command with its pattern, or None when no pattern applies or none makes it shorter. Protected commands are never compressed.