Skip to main content

truncate_tail

Function truncate_tail 

Source
pub fn truncate_tail(
    input: &str,
    max_lines: usize,
    max_bytes: usize,
) -> TruncationResult
Expand description

Truncate keeping the tail (last N lines/bytes). When truncated, writes full output to a temp file.