From 2e65a3f4afb97ba3fc4bcfce0bb5561c3a8408b4 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Thu, 19 Mar 2026 21:37:52 +0800 Subject: Add short and long option flags to workspace sheet completion --- src/cmds/comp/workspace_sheet.rs | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'src/cmds/comp') 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> { @@ -15,11 +16,15 @@ pub fn comp(ctx: CompletionContext) -> Option> { } 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", ]); } -- cgit