summaryrefslogtreecommitdiff
path: root/src/cmds
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-03-19 21:37:52 +0800
committer魏曹先生 <1992414357@qq.com>2026-03-19 21:37:52 +0800
commit2e65a3f4afb97ba3fc4bcfce0bb5561c3a8408b4 (patch)
tree1b6007404bc98a338984cacc826f82f6e546f4f1 /src/cmds
parent5ade48bc29d275d4d71118aaf2efa2dfce91723c (diff)
Add short and long option flags to workspace sheet completion
Diffstat (limited to 'src/cmds')
-rw-r--r--src/cmds/comp/workspace_sheet.rs15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/cmds/comp/workspace_sheet.rs b/src/cmds/comp/workspace_sheet.rs
index 3e00e6d..e9d5983 100644
--- a/src/cmds/comp/workspace_sheet.rs
+++ b/src/cmds/comp/workspace_sheet.rs
@@ -1,4 +1,5 @@
use crate::systems::comp::context::CompletionContext;
+use cli_utils::string_vec;
use just_enough_vcs::system::workspace::workspace::manager::WorkspaceManager;
pub fn comp(ctx: CompletionContext) -> Option<Vec<String>> {
@@ -15,11 +16,15 @@ pub fn comp(ctx: CompletionContext) -> Option<Vec<String>> {
}
if ctx.current_word.starts_with('-') {
- return Some(vec![
- "--list-all".to_string(),
- "--print-path".to_string(),
- "--new".to_string(),
- "--delete".to_string(),
+ return Some(string_vec![
+ "-A",
+ "--list-all",
+ "-p",
+ "--print-path",
+ "-n",
+ "--new",
+ "-d",
+ "--delete",
]);
}