Skip to content

Commit 2c4a0bb

Browse files
authored
feat(cli): force colored logs on mobile commands (#5934)
1 parent 17d80ab commit 2c4a0bb

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.changes/force-colored-logs.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"cli.rs": patch
3+
"cli.js": patch
4+
---
5+
6+
Force colored logs on mobile commands.

tooling/cli/src/mobile/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ pub struct CliOptions {
129129

130130
fn env_vars() -> HashMap<String, OsString> {
131131
let mut vars = HashMap::new();
132+
vars.insert("RUST_LOG_STYLE".into(), "always".into());
132133
for (k, v) in std::env::vars_os() {
133134
let k = k.to_string_lossy();
134135
if (k.starts_with("TAURI") && k != "TAURI_PRIVATE_KEY" && k != "TAURI_KEY_PASSWORD")

0 commit comments

Comments
 (0)