thephpleague / climate

PHP's best friend for the terminal.
http://climate.thephpleague.com
MIT License
1.87k stars 123 forks source link

Progress: getCurrent() & getTotal() #192

Open quasipickle opened 2 years ago

quasipickle commented 2 years ago

It would be useful to be able to retrieve the current & total values from a progress bar.

My use case is that I define the progress bar in one method in a class, then use it in other methods. I'd like my label to be updated with the count, ie (23/1176) without having to track those numbers separately.

I'm happy to do this & submit a PR, but I wonder if this package is actively maintained?