diff --git a/CHANGELOG-Japanese.md b/CHANGELOG-Japanese.md index fb6039a25..35c9f4784 100644 --- a/CHANGELOG-Japanese.md +++ b/CHANGELOG-Japanese.md @@ -1,12 +1,13 @@ # 変更点 -## 2.3.3 [2023/04/05] "Sakura Release" +## 2.3.3 [2023/04/07] "Sakura Release" **改善:** - ファイル(CSV, JSON, JSONL)出力の際にルールの`level`の余分なスペースを削除した。 (#979) (@hitenkoku) - `-M, --multiline`オプション利用時にルール作者名の出力を複数行出力対応をした。 (#980) (@hitenkoku) - Stringの代わりにCoWを利用することで、約5%の速度向上を実現した。 (#984) (@hitenkoku) +- Clapの新バージョンでロゴ後のメッセージとUsageテキストの出力色が緑にならないように修正した。 (#989) (@hitenkoku) **バグ修正:** diff --git a/CHANGELOG.md b/CHANGELOG.md index 497769a33..d0e16c0a5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,12 +1,13 @@ # Changes -## 2.3.3 [2023/04/05] "Sakura Release" +## 2.3.3 [2023/04/07] "Sakura Release" **Enhancements:** - Removed an extra space when outputting the rule `level` to files (CSV, JSON, JSONL). (#979) (@hitenkoku) - Rule authors are now outputted in multiple lines with the `-M, --multiline` option. (#980) (@hitenkoku) - Approximately 3-5% speed increase by replacing String with CoW. (#984) (@hitenkoku) +- Made sure text after the logo does not turn green with recent clap versions. (#989) (@hitenkoku) **Bug Fixes:** diff --git a/Cargo.lock b/Cargo.lock index 9e13beb3e..9980b6385 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1046,14 +1046,14 @@ dependencies = [ [[package]] name = "is-terminal" -version = "0.4.6" +version = "0.4.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "256017f749ab3117e93acb91063009e1f1bb56d03965b14c2c8df4eb02c524d8" +checksum = "adcf93614601c8129ddf72e2d5633df827ba6551541c6d8c59520a371475be1f" dependencies = [ "hermit-abi 0.3.1", "io-lifetimes", "rustix", - "windows-sys 0.45.0", + "windows-sys 0.48.0", ] [[package]] @@ -1762,16 +1762,16 @@ dependencies = [ [[package]] name = "rustix" -version = "0.37.7" +version = "0.37.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2aae838e49b3d63e9274e1c01833cc8139d3fec468c3b84688c628f44b1ae11d" +checksum = "1aef160324be24d31a62147fae491c14d2204a3865c7ca8c3b0d7f7bcb3ea635" dependencies = [ "bitflags", "errno", "io-lifetimes", "libc", "linux-raw-sys", - "windows-sys 0.45.0", + "windows-sys 0.48.0", ] [[package]] diff --git a/src/main.rs b/src/main.rs index e0b0d5f66..ebcea7659 100644 --- a/src/main.rs +++ b/src/main.rs @@ -110,7 +110,7 @@ impl App { { if !stored_static.common_options.quiet { self.output_logo(stored_static); - println!(); + write_color_buffer(&BufferWriter::stdout(ColorChoice::Always), None, "", true).ok(); } app.find_subcommand(subcommand_name) .unwrap() @@ -125,7 +125,7 @@ impl App { if stored_static.config.action.is_none() { if !stored_static.common_options.quiet { self.output_logo(stored_static); - println!(); + write_color_buffer(&BufferWriter::stdout(ColorChoice::Always), None, "", true).ok(); } app.print_help().ok(); println!(); @@ -133,7 +133,7 @@ impl App { } if !stored_static.common_options.quiet { self.output_logo(stored_static); - println!(); + write_color_buffer(&BufferWriter::stdout(ColorChoice::Always), None, "", true).ok(); self.output_eggs(&format!( "{:02}/{:02}", &analysis_start_time.month(),