summaryrefslogtreecommitdiff
path: root/CommandLineWrapperExample/Program.cs
blob: 64d4e80099bb370a488d2308685cf8828078ef48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
internal class Program
{
    private static string currentDirectory = "/.Temp/Current/";
    private static string CorrectCurrentDirectory()
    {
        var current = Directory.GetCurrentDirectory() + currentDirectory;
        if (!Directory.Exists(current))
            Directory.CreateDirectory(current);
        Directory.SetCurrentDirectory(current);
        return current;
    }

    private static async Task Main(string[] args)
    {
        var current = CorrectCurrentDirectory();

        // Use Current as the workspace directory
        var workspace = new JVCSWorkspace();
        await workspace.InitializeAsync(current);

        await workspace.Login("catilgrass", "127.0.0.1");
    }
}