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

feat: method for determining if progress bar is animating #386

Merged
merged 1 commit into from Jun 13, 2023

Conversation

yrashk
Copy link
Contributor

@yrashk yrashk commented Jun 13, 2023

This would be useful to know to stop displaying it after the user was shown the progress bar to render to its end.

Solution: expose IsComplete method is based on what's been drawn

@meowgorithm
Copy link
Member

This specifically to check that the progress bar is not animating, correct? If so, IsAnimating might be more apt.

progress/progress.go Outdated Show resolved Hide resolved
@yrashk
Copy link
Contributor Author

yrashk commented Jun 13, 2023

Renamed to IsAnimating and fixed the doc line.

This would be useful to know to stop displaying it after the user was shown
the progress bar to render to its end.

Solution: expose `IsComplete` method is based on what's been drawn
@yrashk yrashk marked this pull request as draft June 13, 2023 16:15
@yrashk yrashk marked this pull request as ready for review June 13, 2023 16:16
@meowgorithm
Copy link
Member

Look good. Thank you!

@meowgorithm meowgorithm merged commit fe31dc0 into charmbracelet:master Jun 13, 2023
9 checks passed
@yrashk
Copy link
Contributor Author

yrashk commented Jun 13, 2023

Thanks! What's your release-cutting cadence/policy?

@meowgorithm
Copy link
Member

We probably won’t cut a new release for a bit, but in the meantime you can pin to master, which is effectively the same as if we cut a release today.

@meowgorithm meowgorithm changed the title Problem: can't determine if the progress bar stopped updating feat: method for determining if progress bar is animating Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants