Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow removal of trackers and clearing of progress #321

Closed
apprehensions opened this issue May 11, 2024 · 3 comments · Fixed by #336
Closed

Allow removal of trackers and clearing of progress #321

apprehensions opened this issue May 11, 2024 · 3 comments · Fixed by #336
Labels
enhancement New feature or request

Comments

@apprehensions
Copy link

Is your feature request related to a problem? Please describe.
Progress bars remain, even after completing. The same can be said for Progress when all Trackers has been satisfied.

Describe the solution you'd like
func (p *Progress) Clear() to clear all trackers.
func (t *Tracker) Remove() to remove the tracker from Progress

@jedib0t
Copy link
Owner

jedib0t commented May 24, 2024

Hey @apprehensions can you share code or video of what you mean by the progress bars remains after completion?

@apprehensions
Copy link
Author

https://raw.githubusercontent.com/jedib0t/go-pretty/main/progress/images/demo.gif

I'm thus video you made, after the trackers finish with done!, they remain there. I would like for them to be removed from the terminal instead.

@jedib0t
Copy link
Owner

jedib0t commented Oct 6, 2024

Hey @apprehensions ... I know this is 5 months late, but I've implemented a "RemoveOnCompletion" option on the trackers. Check it out. It is on the main branch. If it works for you I can cut a new tag for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants