From 6dedba9e3cedf6463f25460eba84111d6a0bd0dd Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Fri, 9 Jan 2026 23:48:17 +0800 Subject: Add command line wrapper for JVCS operations --- CommandLineWrapperExample/Program.cs | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'CommandLineWrapperExample') 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"); + } +} -- cgit