vbauerster / mpb

multi progress bar for Go cli applications
The Unlicense
2.31k stars 123 forks source link

Please add a way to remove a bar #17

Closed Naatan closed 6 years ago

Naatan commented 6 years ago

I'm writing a downloader that shows bars as workers, a download can be hundreds of files so I want to have it reuse X number of bars. So either I need to reset a bar (feels dirty) or remove a bar when it's finished and add a new one.

Regardless of my use case, allowing for a bar to be removed seems like a basic functionality others would likely also benefit from.

Naatan commented 6 years ago

Do'h just found this right after filing:

https://github.com/vbauerster/mpb/blob/master/examples/remove/main.go

I was looking on the bar struct itself, didn't consider looking at the manager.