We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fb0af1 commit b5d7366Copy full SHA for b5d7366
crates/but/src/main.rs
@@ -25,6 +25,14 @@ mod status;
25
26
#[tokio::main]
27
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
+
36
// Check if help is requested with no subcommand
37
if std::env::args().len() == 1
38
|| std::env::args().any(|arg| arg == "--help" || arg == "-h") && std::env::args().len() == 2
0 commit comments