pub fn compress(
output: &str,
options: &CompressOptions,
) -> Result<CompressResult, ExecError>Expand description
Compress command output.
Outputs with at most options.collapse_threshold lines pass through
unchanged. Otherwise kept lines are: the head summary, the tail summary,
and every line matching a default keep pattern or a user --keep pattern.
Omitted runs between kept lines fold into a single ... [N lines omitted]
marker.
This is the one-shot entry point; it feeds the whole text through a
StreamCompressor, so both paths render byte-identical output.