using CommandLineWrapper; using CommandLineWrapper.JsonResults; public class HereResultGetter : JsonResultGetter { private DirectoryInfo _currentDirectory; public HereResultGetter(DirectoryInfo currentDirectory) => _currentDirectory = currentDirectory; protected override Task ExecCommand(JVCSWorkspace workspace) => JVCSCommandInvoker.Invoke(Constants.CommandParameterGenerator.Here(), _currentDirectory.ToString()); } public struct HereResult { public List 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; } }