Expand description
Display utilities: column alignment, truncation, and builder traits.
Provides consistent text formatting for terminal output across the Batuta stack.
Enums§
- Column
Align - Column alignment for formatted output.
- Truncate
Strategy - Truncation strategy for text that exceeds column width.
Traits§
- With
Dimensions - Trait for types that have configurable width/height dimensions.
Functions§
- format_
bytes_ column - Format bytes into a fixed-width column (SI units, right-aligned).
- format_
column - Format text into a fixed-width column with alignment and truncation.
- format_
number_ column - Format a number into a fixed-width column (right-aligned, with commas).
- format_
percent_ column - Format a percentage into a fixed-width column (right-aligned).
- truncate
- Truncate a string to fit within a maximum width.
- truncate_
path - Smart path truncation that preserves the filename.
- truncate_
str - Truncate a string to
max_lenwith ASCII"..."suffix.