summaryrefslogtreecommitdiff
path: root/CommandLineWrapperExample/Program.cs
blob: 0d9ecdfbf6f66fd0078e21d78951156ae5209ab6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using CommandLineWrapper;

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);
    }
}