diff options
| author | Melodi <62381002+Melodi17@users.noreply.github.com> | 2026-10-28 00:04:17 +1000 |
|---|---|---|
| committer | Melodi <62381002+Melodi17@users.noreply.github.com> | 2026-10-28 00:04:17 +1000 |
| commit | e566edc0442330c11906da384d589c47f836de37 (patch) | |
| tree | 55697bf60d402beeae06ea9258a827a931a359e4 /src/marlin.agents.shell/CommandRunner.cs | |
| parent | 64172b677f699b816d76ab1ea13264b4f91bfb46 (diff) | |
fix: file name; move into loop and uow
Diffstat (limited to 'src/marlin.agents.shell/CommandRunner.cs')
| -rw-r--r-- | src/marlin.agents.shell/CommandRunner.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/marlin.agents.shell/CommandRunner.cs b/src/marlin.agents.shell/CommandRunner.cs index d4fcbb3..90c0a58 100644 --- a/src/marlin.agents.shell/CommandRunner.cs +++ b/src/marlin.agents.shell/CommandRunner.cs @@ -2,7 +2,7 @@ using System.Diagnostics; public static class CommandRunner { - public static async Task<int> RunAsync(string command, Action<string> onStdout, Action<string> onStderr) + public static async Task<int> RunAsync(string command, string workingDir, Action<string> onStdout, Action<string> onStderr) { var psi = new ProcessStartInfo { @@ -11,7 +11,8 @@ public static class CommandRunner RedirectStandardOutput = true, RedirectStandardError = true, UseShellExecute = false, - CreateNoWindow = true + CreateNoWindow = true, + WorkingDirectory = workingDir }; var process = new Process { StartInfo = psi }; |
