summaryrefslogtreecommitdiff
path: root/CommandLineWrapper/JsonResults/Implements/HereResult.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/JsonResults/Implements/HereResult.cs
parent7d59c15b0efd2aa5a27aef356a265f850a2e7e2f (diff)
Add data loading from wrapper to view modelHEADmain
Diffstat (limited to 'CommandLineWrapper/JsonResults/Implements/HereResult.cs')
-rw-r--r--CommandLineWrapper/JsonResults/Implements/HereResult.cs8
1 files changed, 5 insertions, 3 deletions
diff --git a/CommandLineWrapper/JsonResults/Implements/HereResult.cs b/CommandLineWrapper/JsonResults/Implements/HereResult.cs
index b3086a1..497d6c2 100644
--- a/CommandLineWrapper/JsonResults/Implements/HereResult.cs
+++ b/CommandLineWrapper/JsonResults/Implements/HereResult.cs
@@ -1,5 +1,4 @@
-using CommandLineWrapper;
-using CommandLineWrapper.JsonResults;
+namespace CommandLineWrapper.JsonResults.Implements;
public class HereResultGetter : JsonResultGetter<HereResult>
{
@@ -8,6 +7,9 @@ public class HereResultGetter : JsonResultGetter<HereResult>
public HereResultGetter(DirectoryInfo currentDirectory)
=> _currentDirectory = currentDirectory;
+ public void ChangeDirectory(DirectoryInfo directory)
+ => _currentDirectory = directory;
+
protected override Task<JVCSCommandInvoker.InvokeResult> ExecCommand(JVCSWorkspace workspace)
=> JVCSCommandInvoker.Invoke(Constants.CommandParameterGenerator.Here(), _currentDirectory.ToString());
}
@@ -27,4 +29,4 @@ public struct HereResultItem
public bool Exist { get; set; }
public bool Modified { get; set; }
public string Holder { get; set; }
-}
+} \ No newline at end of file