wargo 0.5.0

cargo's evil twin to work with projects in the twilight zone of WSL2
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use indicatif::{ProgressBar, ProgressStyle};

pub(crate) fn bar(len: u64) -> ProgressBar {
    let style = ProgressStyle::default_bar()
        .template("{msg:.green.bold} {wide_bar:.green/blue} {pos}/{len:.bold}")
        .expect("template issue")
        .progress_chars("█▒░");

    ProgressBar::new(len)
        .with_style(style)
        .with_message("Copying files")
}