summaryrefslogtreecommitdiff
path: root/CommandLineWrapper/JVCSWorkspace.cs
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-01-10 00:19:26 +0800
committer魏曹先生 <1992414357@qq.com>2026-01-10 00:19:26 +0800
commitc7ed0578fcfa501ce68bb69678db2765ed75d721 (patch)
tree84c78d4acddfc83ee2fbbf292b0d65c3cc9c03eb /CommandLineWrapper/JVCSWorkspace.cs
parent75f7578d784a4e209da4b29a80d27940197d8945 (diff)
Add code generator for workspace command extensions
Diffstat (limited to 'CommandLineWrapper/JVCSWorkspace.cs')
-rw-r--r--CommandLineWrapper/JVCSWorkspace.cs8
1 files changed, 2 insertions, 6 deletions
diff --git a/CommandLineWrapper/JVCSWorkspace.cs b/CommandLineWrapper/JVCSWorkspace.cs
index 6a39bbf..d88209c 100644
--- a/CommandLineWrapper/JVCSWorkspace.cs
+++ b/CommandLineWrapper/JVCSWorkspace.cs
@@ -2,6 +2,8 @@ using CommandLineWrapper;
public class JVCSWorkspace
{
+ public string WorkspaceDirectory => _workspaceDirectory ?? Directory.GetCurrentDirectory();
+
private string? _workspaceDirectory;
public async Task InitializeAsync(string directory)
@@ -26,10 +28,4 @@ public class JVCSWorkspace
await JVCSCommandInvoker.Invoke(Constants.CommandParameterGenerator.Initialize());
}
}
-
- // Login to a upstream vault
- public async Task Login(string account, string upstream)
- {
- await JVCSCommandInvoker.Invoke(Constants.CommandParameterGenerator.Login(account, upstream));
- }
}