summaryrefslogtreecommitdiff
path: root/CommandLineWrapper/JsonResults/Implements/HereResult.cs
diff options
context:
space:
mode:
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