Skip to content

Commit 6f3893c

Browse files
committed
fix(cli): remove COLOR_OVERRIDE env handling rely on default behavior
1 parent 79fd976 commit 6f3893c

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

crates/but/src/main.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,6 @@ mod status;
2525

2626
#[tokio::main]
2727
async fn main() -> Result<()> {
28-
if let Ok(color_override) = std::env::var("COLOR_OVERRIDE") {
29-
match color_override.to_lowercase().as_str() {
30-
"true" | "1" | "on" | "yes" => colored::control::set_override(true),
31-
"false" | "0" | "off" | "no" => colored::control::set_override(false),
32-
_ => {}
33-
}
34-
}
35-
3628
// Check if help is requested with no subcommand
3729
if std::env::args().len() == 1
3830
|| std::env::args().any(|arg| arg == "--help" || arg == "-h") && std::env::args().len() == 2

0 commit comments

Comments
 (0)