mirror of
https://github.com/tauri-apps/tauri.git
synced 2025-01-01 15:36:14 +03:00
feat(cli): force colored logs on mobile commands (#5934)
This commit is contained in:
parent
17d80ab236
commit
2c4a0bbd1f
6
.changes/force-colored-logs.md
Normal file
6
.changes/force-colored-logs.md
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
"cli.rs": patch
|
||||
"cli.js": patch
|
||||
---
|
||||
|
||||
Force colored logs on mobile commands.
|
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user