summaryrefslogtreecommitdiff
path: root/CommandLineWrapperExample/Program.cs
blob: 1b67cb8812e3aa4703fa32c5da19386eb052b6e8 (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
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);

        await workspace.SheetList();
    }
}