diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-01-13 08:22:09 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-01-13 08:22:09 +0800 |
| commit | 5d8b29664c13e6e5c6292d79973980182ece1441 (patch) | |
| tree | ced2f67c82ce0748dbd0090f0fde6b921329d259 /CommandLineWrapper/JsonResults/Implements/HereResult.cs | |
| parent | 7d59c15b0efd2aa5a27aef356a265f850a2e7e2f (diff) | |
Diffstat (limited to 'CommandLineWrapper/JsonResults/Implements/HereResult.cs')
| -rw-r--r-- | CommandLineWrapper/JsonResults/Implements/HereResult.cs | 8 |
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 |
