mirror of
https://github.com/crate-ci/typos.git
synced 2024-11-28 20:11:05 -05:00
chore: Upgrade concolor
This commit is contained in:
parent
b356f9d845
commit
3d33e7e888
3 changed files with 28 additions and 11 deletions
29
Cargo.lock
generated
29
Cargo.lock
generated
|
@ -256,13 +256,24 @@ dependencies = [
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "concolor-clap"
|
name = "concolor"
|
||||||
version = "0.0.7"
|
version = "0.0.8"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "14b1e2c32ce41369500cb16afec166bb78f8044ab18264802e679aeec6871039"
|
checksum = "015267563b1df20adccdd00cb05257b1dfbea70a04928e9cf88ffb850c1a40af"
|
||||||
|
dependencies = [
|
||||||
|
"atty",
|
||||||
|
"bitflags",
|
||||||
|
"concolor-query 0.0.5",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "concolor-clap"
|
||||||
|
version = "0.0.8"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "059a1172876f3c1a3a23247d9d79efaaaf2f27f40a776e54db820be8386be32a"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"clap 3.0.0",
|
"clap 3.0.0",
|
||||||
"concolor-control",
|
"concolor",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -273,7 +284,7 @@ checksum = "7104119c2f80d887239879d0c50e033cd40eac9a3f3561e0684ba7d5d654f4da"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"atty",
|
"atty",
|
||||||
"bitflags",
|
"bitflags",
|
||||||
"concolor-query",
|
"concolor-query 0.0.4",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -282,6 +293,12 @@ version = "0.0.4"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "ad159cc964ac8f9d407cbc0aa44b02436c054b541f2b4b5f06972e1efdc54bc7"
|
checksum = "ad159cc964ac8f9d407cbc0aa44b02436c054b541f2b4b5f06972e1efdc54bc7"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "concolor-query"
|
||||||
|
version = "0.0.5"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "d6417fe6fc03a8b533fd2177742eeb39a90c7233eedec7bac96d4d6b69a09449"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "content_inspector"
|
name = "content_inspector"
|
||||||
version = "0.2.4"
|
version = "0.2.4"
|
||||||
|
@ -1517,8 +1534,8 @@ dependencies = [
|
||||||
"bstr",
|
"bstr",
|
||||||
"clap 3.0.0",
|
"clap 3.0.0",
|
||||||
"clap-verbosity-flag 0.4.0",
|
"clap-verbosity-flag 0.4.0",
|
||||||
|
"concolor",
|
||||||
"concolor-clap",
|
"concolor-clap",
|
||||||
"concolor-control",
|
|
||||||
"content_inspector",
|
"content_inspector",
|
||||||
"criterion",
|
"criterion",
|
||||||
"derive_more",
|
"derive_more",
|
||||||
|
|
|
@ -73,8 +73,8 @@ log = "0.4"
|
||||||
env_logger = { version = "0.9", default-features = false, features = ["termcolor"] }
|
env_logger = { version = "0.9", default-features = false, features = ["termcolor"] }
|
||||||
atty = "0.2.14"
|
atty = "0.2.14"
|
||||||
yansi = "0.5.0"
|
yansi = "0.5.0"
|
||||||
concolor-control = { version = "0.0.7" }
|
concolor = { version = "0.0.8" }
|
||||||
concolor-clap = { version = "0.0.7", features = ["api_unstable"] }
|
concolor-clap = { version = "0.0.8", features = ["api_unstable"] }
|
||||||
bstr = "0.2"
|
bstr = "0.2"
|
||||||
once_cell = "1.2.0"
|
once_cell = "1.2.0"
|
||||||
ahash = "0.7"
|
ahash = "0.7"
|
||||||
|
|
|
@ -31,12 +31,12 @@ fn run() -> proc_exit::ExitResult {
|
||||||
|
|
||||||
init_logging(args.verbose.log_level());
|
init_logging(args.verbose.log_level());
|
||||||
|
|
||||||
let stdout_palette = if concolor_control::get(concolor_control::Stream::Stdout).ansi_color() {
|
let stdout_palette = if concolor::get(concolor::Stream::Stdout).ansi_color() {
|
||||||
report::Palette::colored()
|
report::Palette::colored()
|
||||||
} else {
|
} else {
|
||||||
report::Palette::plain()
|
report::Palette::plain()
|
||||||
};
|
};
|
||||||
let stderr_palette = if concolor_control::get(concolor_control::Stream::Stderr).ansi_color() {
|
let stderr_palette = if concolor::get(concolor::Stream::Stderr).ansi_color() {
|
||||||
report::Palette::colored()
|
report::Palette::colored()
|
||||||
} else {
|
} else {
|
||||||
report::Palette::plain()
|
report::Palette::plain()
|
||||||
|
@ -266,7 +266,7 @@ fn init_logging(level: Option<log::Level>) {
|
||||||
if let Some(level) = level {
|
if let Some(level) = level {
|
||||||
let mut builder = env_logger::Builder::new();
|
let mut builder = env_logger::Builder::new();
|
||||||
|
|
||||||
let colored = concolor_control::get(concolor_control::Stream::Stderr).ansi_color();
|
let colored = concolor::get(concolor::Stream::Stderr).ansi_color();
|
||||||
builder.write_style(if colored {
|
builder.write_style(if colored {
|
||||||
env_logger::WriteStyle::Always
|
env_logger::WriteStyle::Always
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue