Skip to main content

Module format

Module format 

Source
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.
truncate_path
Truncate a path intelligently — shows the end (most relevant part).
truncate_string
Truncate a string to a maximum length, appending “…” if truncated.