Skip to content

Commit 0b79af7

Browse files
authored
enhance(cli): log message to inform user of DevCommand being used (#12438)
1 parent a70e690 commit 0b79af7

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.changes/log-dev-command.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"tauri-cli": patch:enhance
3+
"@tauri-apps/cli": patch:enhance
4+
---
5+
6+
Log the command used to start the rust app in development.

crates/tauri-cli/src/interface/rust/desktop.rs

+2
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ pub fn run_dev<F: Fn(Option<i32>, ExitReason) + Send + Sync + 'static>(
8181
let manually_killed_app = Arc::new(AtomicBool::default());
8282
let manually_killed_app_ = manually_killed_app.clone();
8383

84+
log::info!(action = "Running"; "DevCommand (`{} {}`)", &dev_cmd.get_program().to_string_lossy(), dev_cmd.get_args().map(|arg| arg.to_string_lossy()).fold(String::new(), |acc, arg| format!("{acc} {arg}")));
85+
8486
let dev_child = match SharedChild::spawn(&mut dev_cmd) {
8587
Ok(c) => Ok(c),
8688
Err(e) if e.kind() == ErrorKind::NotFound => Err(anyhow::anyhow!(

0 commit comments

Comments
 (0)