diff options
Diffstat (limited to 'CommandLineWrapper/JsonResults/Implements/HereResult.cs')
| -rw-r--r-- | CommandLineWrapper/JsonResults/Implements/HereResult.cs | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/CommandLineWrapper/JsonResults/Implements/HereResult.cs b/CommandLineWrapper/JsonResults/Implements/HereResult.cs new file mode 100644 index 0000000..b3086a1 --- /dev/null +++ b/CommandLineWrapper/JsonResults/Implements/HereResult.cs @@ -0,0 +1,30 @@ +using CommandLineWrapper; +using CommandLineWrapper.JsonResults; + +public class HereResultGetter : JsonResultGetter<HereResult> +{ + private DirectoryInfo _currentDirectory; + + public HereResultGetter(DirectoryInfo currentDirectory) + => _currentDirectory = currentDirectory; + + protected override Task<JVCSCommandInvoker.InvokeResult> ExecCommand(JVCSWorkspace workspace) + => JVCSCommandInvoker.Invoke(Constants.CommandParameterGenerator.Here(), _currentDirectory.ToString()); +} + +public struct HereResult +{ + public List<HereResultItem> Items { get; set; } +} + +public struct HereResultItem +{ + public string Mapping { get; set; } + public string Name { get; set; } + public string CurrentVersion { get; set; } + public long Size { get; set; } + public bool IsDir { get; set; } + public bool Exist { get; set; } + public bool Modified { get; set; } + public string Holder { get; set; } +} |
