summaryrefslogtreecommitdiff
path: root/src/cmds/comp/workspace_sheet.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmds/comp/workspace_sheet.rs')
-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",
]);
}