feat(cli): force colored logs on mobile commands (#5934)

This commit is contained in:
Lucas Fernandes Nogueira 2022-12-28 12:58:14 -08:00 committed by GitHub
parent 17d80ab236
commit 2c4a0bbd1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,6 @@
---
"cli.rs": patch
"cli.js": patch
---
Force colored logs on mobile commands.

View File

@ -129,6 +129,7 @@ pub struct CliOptions {
fn env_vars() -> HashMap<String, OsString> {
let mut vars = HashMap::new();
vars.insert("RUST_LOG_STYLE".into(), "always".into());
for (k, v) in std::env::vars_os() {
let k = k.to_string_lossy();
if (k.starts_with("TAURI") && k != "TAURI_PRIVATE_KEY" && k != "TAURI_KEY_PASSWORD")