Expand description
Download progress tracking.
Progress tracks concurrent downloads and prints each result as it
completes. URLs are truncated to fit the terminal width automatically.
§Example
use cli_ui::Progress;
let pb = Progress::new(13);
pb.ok("style", "remote", "https://example.com/style.css", "./css/style.css", 6041);
pb.fail("script", "https://example.com/app.js", "connection refused");
pb.finish();Structs§
- Progress
- Tracks download progress and prints styled result lines.
Functions§
- format_
bytes - Format a byte count as a human-readable string.
- substep
- Print a CSS sub-step line.