Enable ANSI colors on Windows 10 (#3583)

This commit is contained in:
Charlie Marsh 2023-03-17 17:34:39 -04:00 committed by GitHub
parent 1dd3cbd047
commit 50f9db21da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -69,6 +69,10 @@ quoting the executed command, along with the relevant file contents and `pyproje
}));
}
// Enabled ANSI colors on Windows 10.
#[cfg(windows)]
assert!(colored::control::set_virtual_terminal(true).is_ok());
let log_level: LogLevel = (&log_level_args).into();
set_up_logging(&log_level)?;