From 7e550a8d49922ff555784282a6941489a3902ef7 Mon Sep 17 00:00:00 2001 From: Julian Freeman Date: Tue, 31 Mar 2026 11:42:07 -0400 Subject: [PATCH] add cmd to log --- src-tauri/src/lib.rs | 3 ++- src-tauri/src/winget.rs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 2dab8f0..a4ad1dd 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -274,7 +274,8 @@ pub fn run() { "--disable-interactivity".to_string(), ]); - emit_log(&handle, &log_id, &display_cmd, "Starting...", "info"); + let full_command = format!("winget {}", args.join(" ")); + emit_log(&handle, &log_id, &display_cmd, &format!("Executing: {}\n---", full_command), "info"); let h = handle.clone(); let current_id = task_id.clone(); diff --git a/src-tauri/src/winget.rs b/src-tauri/src/winget.rs index 975fb50..4e8b498 100644 --- a/src-tauri/src/winget.rs +++ b/src-tauri/src/winget.rs @@ -227,7 +227,7 @@ pub fn list_updates(handle: &AppHandle) -> Vec { } fn execute_powershell(handle: &AppHandle, log_id: &str, cmd_title: &str, script: &str) -> Vec { - emit_log(handle, log_id, cmd_title, "Executing PowerShell...", "info"); + emit_log(handle, log_id, cmd_title, &format!("Executing Script:\n{}\n---", script), "info"); let output = Command::new("powershell") .args(["-NoProfile", "-Command", script])