Expand description
Human-facing formatting and the minimal ANSI styling we need.
Structs§
- Style
- ANSI styling, globally disabled when output is not a terminal or when
NO_COLORis set.
Functions§
- bar
- bar_
parts - The filled and empty halves of a progress bar, separate so the caller can
colour them independently. Together they are always exactly
widthcells. - bytes
12.40 GiB- duration
2m 31s,1h 04m,812ms- eta
- ETA, or
--when we have no basis for an estimate. - percent
55.0%- rate
84.7 MiB/s- short_
url - Truncate a URL for display so a signed CDN URL does not wrap the terminal. Also drops the query string, which is where credentials usually hide.