mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-04 01:37:50 +00:00
Keep coloring on Windows if auto or full
This commit is contained in:
1 parent
0d46c302f5
commit
038c05eee0
1 file changed
+4
-3
+4
-3
@@ -147,13 +147,14 @@ fn main() {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if options.output_style == OutputStyleOption::Basic {
|
||||||
|
colored::control::set_override(false);
|
||||||
|
}
|
||||||
|
|
||||||
if cfg!(target_os = "windows") {
|
if cfg!(target_os = "windows") {
|
||||||
options.output_style = OutputStyleOption::Basic;
|
options.output_style = OutputStyleOption::Basic;
|
||||||
}
|
}
|
||||||
|
|
||||||
if options.output_style == OutputStyleOption::Basic {
|
|
||||||
colored::control::set_override(false);
|
|
||||||
}
|
|
||||||
if matches.is_present("ignore-failure") {
|
if matches.is_present("ignore-failure") {
|
||||||
options.failure_action = CmdFailureAction::Ignore;
|
options.failure_action = CmdFailureAction::Ignore;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user