Skip to content

Commit 9815a5e

Browse files
committed
fix(cli): Adjust terminal styles to match rustc
Fixes #12740
1 parent 5b6c4c3 commit 9815a5e

File tree

352 files changed

+2584
-2630
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

352 files changed

+2584
-2630
lines changed

src/cargo/util/style.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
use anstyle::*;
22

33
pub const NOP: Style = Style::new();
4-
pub const HEADER: Style = AnsiColor::Green.on_default().effects(Effects::BOLD);
5-
pub const USAGE: Style = AnsiColor::Green.on_default().effects(Effects::BOLD);
6-
pub const LITERAL: Style = AnsiColor::Cyan.on_default().effects(Effects::BOLD);
7-
pub const PLACEHOLDER: Style = AnsiColor::Cyan.on_default();
8-
pub const ERROR: Style = AnsiColor::Red.on_default().effects(Effects::BOLD);
9-
pub const WARN: Style = AnsiColor::Yellow.on_default().effects(Effects::BOLD);
10-
pub const NOTE: Style = AnsiColor::Cyan.on_default().effects(Effects::BOLD);
11-
pub const GOOD: Style = AnsiColor::Green.on_default().effects(Effects::BOLD);
12-
pub const VALID: Style = AnsiColor::Cyan.on_default().effects(Effects::BOLD);
13-
pub const INVALID: Style = AnsiColor::Yellow.on_default().effects(Effects::BOLD);
4+
pub const HEADER: Style = AnsiColor::BrightGreen.on_default().effects(Effects::BOLD);
5+
pub const USAGE: Style = AnsiColor::BrightGreen.on_default().effects(Effects::BOLD);
6+
pub const LITERAL: Style = AnsiColor::BrightCyan.on_default().effects(Effects::BOLD);
7+
pub const PLACEHOLDER: Style = AnsiColor::BrightCyan.on_default();
8+
pub const ERROR: Style = annotate_snippets::renderer::DEFAULT_ERROR_STYLE;
9+
pub const WARN: Style = annotate_snippets::renderer::DEFAULT_WARNING_STYLE;
10+
pub const NOTE: Style = annotate_snippets::renderer::DEFAULT_NOTE_STYLE;
11+
pub const GOOD: Style = AnsiColor::BrightGreen.on_default().effects(Effects::BOLD);
12+
pub const VALID: Style = AnsiColor::BrightCyan.on_default().effects(Effects::BOLD);
13+
pub const INVALID: Style = annotate_snippets::renderer::DEFAULT_WARNING_STYLE;

tests/testsuite/cargo/help/stdout.term.svg

Lines changed: 14 additions & 13 deletions
Loading

tests/testsuite/cargo_add/add_basic/stderr.term.svg

Lines changed: 4 additions & 4 deletions
Loading

tests/testsuite/cargo_add/add_multiple/stderr.term.svg

Lines changed: 5 additions & 5 deletions
Loading

tests/testsuite/cargo_add/add_no_vendored_package_with_alter_registry/stderr.term.svg

Lines changed: 12 additions & 12 deletions
Loading

tests/testsuite/cargo_add/add_no_vendored_package_with_vendor/stderr.term.svg

Lines changed: 2 additions & 2 deletions
Loading

tests/testsuite/cargo_add/add_toolchain/stderr.term.svg

Lines changed: 2 additions & 2 deletions
Loading

tests/testsuite/cargo_add/build/stderr.term.svg

Lines changed: 5 additions & 5 deletions
Loading

tests/testsuite/cargo_add/build_prefer_existing_version/stderr.term.svg

Lines changed: 6 additions & 6 deletions
Loading

0 commit comments

Comments
 (0)