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

Add spinner to progress bar #130

Merged
merged 3 commits into from
Dec 16, 2024
Merged

Add spinner to progress bar #130

merged 3 commits into from
Dec 16, 2024

Conversation

richfitz
Copy link
Member

When things don't change that often it looks like things have stalled, a progress bar helps with that. This PR uses the cli progress bar to add a simple spinner at the start of the progress; I think we had this in mcstate?

Copy link

codecov bot commented Dec 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.78%. Comparing base (774cbd0) to head (1df64dd).
Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #130   +/-   ##
=======================================
  Coverage   99.78%   99.78%           
=======================================
  Files          66       66           
  Lines        5226     5229    +3     
=======================================
+ Hits         5215     5218    +3     
  Misses         11       11           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@richfitz richfitz marked this pull request as ready for review December 13, 2024 16:55
@richfitz richfitz requested a review from weshinsley December 13, 2024 16:55
monty_spinner <- function(date = Sys.Date()) {
getOption(
"cli.spinner",
if (format(date, "%m") == "12") "christmas" else "dots12")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent!

@richfitz richfitz merged commit 8437999 into main Dec 16, 2024
10 checks passed
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.

2 participants