Skip to content

Commit

Permalink
feat(cli): force colored logs on mobile commands (#5934)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfernog committed Dec 28, 2022
1 parent 17d80ab commit 2c4a0bb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changes/force-colored-logs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"cli.rs": patch
"cli.js": patch
---

Force colored logs on mobile commands.
1 change: 1 addition & 0 deletions tooling/cli/src/mobile/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 2c4a0bb

Please sign in to comment.