Skip to content

Commit

Permalink
bump yansi
Browse files Browse the repository at this point in the history
  • Loading branch information
bomgar committed Apr 3, 2024
1 parent 0a607ea commit cb4240f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ git2 = "0.18"
maplit = "1.0"
rayon = "1"
regex = "1"
yansi = "0.5.1"
rand = "0.8"
crossbeam = "0"
indicatif = "0"
Expand All @@ -33,3 +32,7 @@ openssl = { version = "0.10", features = ["vendored"] }
[dependencies.clap]
version = "4"
features = ["cargo"]

[dependencies.yansi]
version = "1"
features = ["detect-env"]
4 changes: 2 additions & 2 deletions src/spawn/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ fn forward_process_output_to_stdout<T: std::io::Read>(read: T, prefix: &str, col
if mark_err {
let prefix = format!("{:>21.21} |", prefix);
if atty {
print!("{} {} {}", Paint::red("ERR"), color.paint(prefix), line);
print!("{} {} {}", "ERR".red(), prefix.fg(color), line);
} else {
print!("ERR {} {}", prefix, line);
};
} else {
let prefix = format!("{:>25.25} |", prefix);
if atty {
print!("{} {}", color.paint(prefix), line);
print!("{} {}", prefix.fg(color), line);
} else {
print!("{} {}", prefix, line);
};
Expand Down
12 changes: 6 additions & 6 deletions src/util/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ pub static COLOURS: [Color; 12] = [
Color::Blue,
Color::Yellow,
Color::Red,
Color::RGB(255, 165, 0),
Color::RGB(255, 99, 71),
Color::RGB(0, 153, 255),
Color::RGB(153, 102, 51),
Color::RGB(102, 153, 0),
Color::RGB(255, 153, 255),
Color::Rgb(255, 165, 0),
Color::Rgb(255, 99, 71),
Color::Rgb(0, 153, 255),
Color::Rgb(153, 102, 51),
Color::Rgb(102, 153, 0),
Color::Rgb(255, 153, 255),
Color::Magenta,
];

Expand Down

0 comments on commit cb4240f

Please sign in to comment.