summaryrefslogtreecommitdiff
path: root/CommandLineWrapper/JVCSCommandInvoker.cs
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-01-13 08:22:09 +0800
committer魏曹先生 <1992414357@qq.com>2026-01-13 08:22:09 +0800
commit5d8b29664c13e6e5c6292d79973980182ece1441 (patch)
treeced2f67c82ce0748dbd0090f0fde6b921329d259 /CommandLineWrapper/JVCSCommandInvoker.cs
parent7d59c15b0efd2aa5a27aef356a265f850a2e7e2f (diff)
Add data loading from wrapper to view modelHEADmain
Diffstat (limited to 'CommandLineWrapper/JVCSCommandInvoker.cs')
-rw-r--r--CommandLineWrapper/JVCSCommandInvoker.cs26
1 files changed, 13 insertions, 13 deletions
diff --git a/CommandLineWrapper/JVCSCommandInvoker.cs b/CommandLineWrapper/JVCSCommandInvoker.cs
index 56d67ca..3d4e594 100644
--- a/CommandLineWrapper/JVCSCommandInvoker.cs
+++ b/CommandLineWrapper/JVCSCommandInvoker.cs
@@ -1,5 +1,6 @@
using System.Diagnostics;
-using CommandLineWrapper;
+
+namespace CommandLineWrapper;
public static class JVCSCommandInvoker
{
@@ -25,17 +26,16 @@ public static class JVCSCommandInvoker
if (!string.IsNullOrEmpty(workingDirectory))
startInfo.WorkingDirectory = workingDirectory;
- using (var process = new Process { StartInfo = startInfo })
- {
- process.Start();
- string output = await process.StandardOutput.ReadToEndAsync();
- await process.WaitForExitAsync();
+ using var process = new Process();
+ process.StartInfo = startInfo;
+ process.Start();
+ string output = await process.StandardOutput.ReadToEndAsync();
+ await process.WaitForExitAsync();
- return new InvokeResult
- {
- ExitCode = process.ExitCode,
- StandardOutput = output.Trim()
- };
- }
+ return new InvokeResult
+ {
+ ExitCode = process.ExitCode,
+ StandardOutput = output.Trim()
+ };
}
-}
+} \ No newline at end of file