Skip to main content

Module compress

Module compress 

Source

Functions§

compress_if_beneficial_pub
Public wrapper for integration tests to exercise the compression pipeline.
has_structural_output
Returns true for commands whose output structure is critical for developer readability. Pattern compression (light cleanup like removing index lines or limiting context) still applies, but the terse pipeline and generic compressors are skipped so diff hunks, blame annotations, etc. remain fully readable.
is_verbatim_output
Returns true for commands where the output IS the purpose of the command. These must never have their content transformed — only size-limited if huge. Checks both the full command AND the last pipe segment for comprehensive coverage.
shell_savings_footer