ソースを参照

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

Lucas Fernandes Nogueira 2 年 前
コミット
2c4a0bbd1f
2 ファイル変更7 行追加0 行削除
  1. 6 0
      .changes/force-colored-logs.md
  2. 1 0
      tooling/cli/src/mobile/mod.rs

+ 6 - 0
.changes/force-colored-logs.md

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

+ 1 - 0
tooling/cli/src/mobile/mod.rs

@@ -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")