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

Use {cli} progress bar #2641

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

Use {cli} progress bar #2641

wants to merge 4 commits into from

Conversation

IndrajeetPatil
Copy link
Collaborator

@IndrajeetPatil IndrajeetPatil commented Aug 3, 2024

TODO:

lint(file, ..., parse_settings = FALSE, exclusions = exclusions)
}
cli::cli_progress_along(files, name = "Running linters"),
function(idx) lint(files[idx], ..., parse_settings = FALSE, exclusions = exclusions)
Copy link
Collaborator Author

@IndrajeetPatil IndrajeetPatil Aug 3, 2024

Choose a reason for hiding this comment

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

@AshesITR
Copy link
Collaborator

AshesITR commented Aug 4, 2024

Re testing: Is there a way to hook into progress bar updates, or supply a "testing" progress bar to cli?

Otherwise this seems hard to properly and robustly test - especially the animation.

@MichaelChirico
Copy link
Collaborator

I don't see a need to test thing (formally/in testthat suite), besides ensuring it doesn't cause any error. We can rely on user reports of things "looking bad" IMO.

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.

3 participants