Keep coloring on Windows if auto or full

This commit is contained in:
Steve Pentland authored and David Peter committed 2018-02-02 22:42:53 +01:00
1 parent 0d46c302f5
commit 038c05eee0
1 file changed
+4 -3
+4 -3
View File
@@ -147,13 +147,14 @@ fn main() {
},
};
if options.output_style == OutputStyleOption::Basic {
colored::control::set_override(false);
}
if cfg!(target_os = "windows") {
options.output_style = OutputStyleOption::Basic;
}
if options.output_style == OutputStyleOption::Basic {
colored::control::set_override(false);
}
if matches.is_present("ignore-failure") {
options.failure_action = CmdFailureAction::Ignore;
}