Support progress without known total
- Dominant language
- Rust
- Stars
- 600
- Forks
- 59
- PR merge metrics
- No merged PRs in 30d
Description
I'd like to use a progress indicator showing time and thoughput, current total bytes.
Currently the counter box always shows the total:
```rust
// counter box
if self.show_counter {
let (c, t) = (self.current as f64, self.total as f64);
prefix = prefix +
&match self.units {
Units::Default => format!("{} / {} ", c, t),
Units::Bytes => format!("{} / {} ", kb_fmt!(c), kb_fmt!(t)),
};
}
```
Maybe a `show_total` could be added which switches to another counter format string like `{}`
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue points to the counter box logic in the codebase, likely in a file like `src/lib.rs` or `src/progress.rs`. Look for the `show_counter` field and the `Units` enum. Add a `show_total` boolean field to the progress bar struct and adjust the formatting logic to conditionally show the total. Check existing tests for the progress bar to understand how to verify the change.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli, tooling
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100