Expand description
Shared formatting utilities used across commands and output
Provides common string formatting, truncation, and colorization.
Functions§
- colorize_
status - Colorize a process status string based on the status variant.
- format_
duration - Format a duration in seconds to a human-readable string.
- format_
memory - Format memory in MB to a human-readable string with adaptive units.
- truncate_
path - Truncate a path intelligently — shows the end (most relevant part).
- truncate_
string - Truncate a string to a maximum length, appending “…” if truncated.