blob: b3086a18050b9e0457ce324f2893a2116f4fdd62 (
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
|
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; }
}
|