Open zohnannor opened 1 year ago
So this seems pretty specific to the iterator-based API, since the underlying ProgressBar
API makes it pretty easy to initialize len
and use inc()
to increase the position in larger steps.
Do you want to submit a PR for this? I'm afraid this is a bit too niche for me to spend much time on.
Sure, if you're fine with API I proposed.
Seems okay.
I am using progress bar like so:
I am sending requests to an API with pagination mechanic with offset and count, so that I can retrieve
COUNT
items each response.(0..count).step_by(COUNT)
is helping with that. But this way progress bar displays numbersCOUNT
times smaller. It would be very helpful if I could set custompos
&len
calculation forProgressStyle
. Maybe like so: