pub fn compress_output(command: &str, output: &str) -> Option<String>
Compress output of command with its pattern, or None when no pattern applies or none makes it shorter. Protected commands are never compressed.
output
command
None