summaryrefslogtreecommitdiff
path: root/CommandLineWrapperExample
diff options
context:
space:
mode:
Diffstat (limited to 'CommandLineWrapperExample')
-rw-r--r--CommandLineWrapperExample/Program.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/CommandLineWrapperExample/Program.cs b/CommandLineWrapperExample/Program.cs
index e69de29..64d4e80 100644
--- a/CommandLineWrapperExample/Program.cs
+++ b/CommandLineWrapperExample/Program.cs
@@ -0,0 +1,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");
+ }
+}