summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2025-12-25 16:14:13 +0800
committer魏曹先生 <1992414357@qq.com>2025-12-25 16:19:33 +0800
commitb00e3e750d118c35b0949b78c1a59242aeb43082 (patch)
tree6e36249835983adc3d6256f7a65664b963dc179d /scripts
parentcc4bef746adda6cc48ddf93f113847b88a4e185d (diff)
Replace import/export commands with share command
Diffstat (limited to 'scripts')
-rw-r--r--scripts/completions/bash/completion_jv.sh5
-rw-r--r--scripts/completions/powershell/completion_jv.ps15
2 files changed, 4 insertions, 6 deletions
diff --git a/scripts/completions/bash/completion_jv.sh b/scripts/completions/bash/completion_jv.sh
index be5afc6..604fb8c 100644
--- a/scripts/completions/bash/completion_jv.sh
+++ b/scripts/completions/bash/completion_jv.sh
@@ -16,8 +16,7 @@ _jv_completion() {
# Subcommands
local base_commands="create init direct unstain account update \
- sheet status here import export in out \
- move mv docs exit use sheets accounts \
+ sheet status here move mv docs exit use sheets accounts \
as make drop track hold throw login \
jump align"
@@ -222,7 +221,7 @@ _jv_completion() {
"move"|"mv")
COMPREPLY=($(compgen -f -- "$cur"))
;;
- "import"|"export"|"in"|"out"|"track"|"hold"|"throw")
+ "track"|"hold"|"throw")
COMPREPLY=($(compgen -f -- "$cur"))
;;
esac
diff --git a/scripts/completions/powershell/completion_jv.ps1 b/scripts/completions/powershell/completion_jv.ps1
index b756fbd..46a56cc 100644
--- a/scripts/completions/powershell/completion_jv.ps1
+++ b/scripts/completions/powershell/completion_jv.ps1
@@ -14,8 +14,7 @@ Register-ArgumentCompleter -Native -CommandName jv -ScriptBlock {
# Base commands
$baseCommands = @(
"create", "init", "direct", "unstain", "account", "update",
- "sheet", "status", "here", "import", "export", "in", "out",
- "move", "mv", "docs", "exit", "use", "sheets", "accounts",
+ "sheet", "status", "here", "move", "mv", "docs", "exit", "use", "sheets", "accounts",
"as", "make", "drop", "track", "hold", "throw", "login",
"jump", "align"
)
@@ -199,7 +198,7 @@ Register-ArgumentCompleter -Native -CommandName jv -ScriptBlock {
return $docs | Where-Object { $_ -like "$wordToComplete*" }
}
}
- { @("move", "mv", "import", "export", "in", "out", "track", "hold", "throw") -contains $_ } {
+ { @("move", "mv", "track", "hold", "throw") -contains $_ } {
# File completion for file operations
return Get-ChildItem -Name -File -Path "." | Where-Object { $_ -like "$wordToComplete*" }
}