casey / casey/cargo-quickfix

Enable Progress Bar

Open
#11 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
11
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Currently, forcing the progress bar to display with `command.env("CARGO_TERM_PROGRESS_WHEN", "always")` doesn't look right due to https://github.com/rust-lang/cargo/issues/9155. This [merged PR](https://github.com/rust-lang/cargo/pull/9231) fixes it, but hasn't made it into a release.

Once it does, we should force the progress bar on with:

```rust
if let Some((width, _height)) = term_size::dimensions() {
command
.env("CARGO_TERM_PROGRESS_WHEN", "always")
.env("CARGO_TERM_PROGRESS_WIDTH", &width.to_string());
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.