blob: 497d6c2e4a090fdedeb107d041fad498c5066758 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
namespace CommandLineWrapper.JsonResults.Implements;
public class HereResultGetter : JsonResultGetter<HereResult>
{
private DirectoryInfo _currentDirectory;
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());
}
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; }
}
|