summaryrefslogtreecommitdiffstats
path: root/completions/svk
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 01:03:19 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 01:03:19 +0000
commit6c09f2a45c5541e9c207d14fc7aa21a4a0066bde (patch)
tree0221189d367bf661f6f9493c4f17a03f0dd4b7d2 /completions/svk
parentReleasing progress-linux version 1:2.11-8~progress7.99u1. (diff)
downloadbash-completion-6c09f2a45c5541e9c207d14fc7aa21a4a0066bde.tar.xz
bash-completion-6c09f2a45c5541e9c207d14fc7aa21a4a0066bde.zip
Merging upstream version 1:2.12.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'completions/svk')
-rw-r--r--completions/svk42
1 files changed, 20 insertions, 22 deletions
diff --git a/completions/svk b/completions/svk
index 9079df1..cfa6ede 100644
--- a/completions/svk
+++ b/completions/svk
@@ -1,9 +1,9 @@
# svk(1) completion -*- shell-script -*-
-_svk()
+_comp_cmd_svk()
{
- local cur prev words cword
- _init_completion || return
+ local cur prev words cword comp_args
+ _comp_initialize -- "$@" || return
local commands options command
@@ -16,18 +16,18 @@ _svk()
if ((cword == 1)); then
if [[ $cur == -* ]]; then
- COMPREPLY=($(compgen -W '--version' -- "$cur"))
+ _comp_compgen -- -W '--version'
else
- COMPREPLY=($(compgen -W "$commands" -- "$cur"))
+ _comp_compgen -- -W "$commands"
fi
else
case $prev in
-F | --file | --targets)
- _filedir
+ _comp_compgen_filedir
return
;;
--encoding)
- _xfunc iconv _iconv_charsets
+ _comp_compgen -x iconv charsets
return
;;
esac
@@ -172,26 +172,24 @@ _svk()
esac
options+=" --help -h"
- COMPREPLY=($(compgen -W "$options" -- "$cur"))
+ _comp_compgen -- -W "$options"
else
case $command in
help | h | \?)
- COMPREPLY=($(compgen -W "$commands environment commands
- intro" -- "$cur"))
+ _comp_compgen -- -W "$commands environment commands intro"
;;
admin)
- COMPREPLY=($(compgen -W 'help deltify dump hotcopy
- list-dblogs list-unused-dblogs load lstxns recover
- rmtxns setlog verify rmcache' -- "$cur"))
+ _comp_compgen -- -W 'help deltify dump hotcopy list-dblogs
+ list-unused-dblogs load lstxns recover rmtxns setlog
+ verify rmcache'
;;
patch)
- COMPREPLY=($(compgen -W '--ls --list --cat --view
- --regen --regenerate --up --update --apply --rm
- --delete' -- "$cur"))
+ _comp_compgen -- -W '--ls --list --cat --view --regen
+ --regenerate --up --update --apply --rm --delete'
;;
sync)
- COMPREPLY=($(compgen -W "$($1 mirror --list \
- 2>/dev/null | awk '/^\//{print $1}')" -- "$cur"))
+ _comp_compgen_split -- "$("$1" mirror --list \
+ 2>/dev/null | _comp_awk '/^\//{print $1}')"
;;
co | checkout | push | pull)
if [[ $cur == //*/* ]]; then
@@ -199,16 +197,16 @@ _svk()
else
path=//
fi
- COMPREPLY=($(compgen -W "$($1 list $path 2>/dev/null |
- command sed -e 's|\(.*\)|'$path'\1|')" -- "$cur"))
+ _comp_compgen_split -- "$("$1" list "$path" 2>/dev/null |
+ command sed -e 's|\(.*\)|'"$path"'\1|')"
;;
*)
- _filedir
+ _comp_compgen_filedir
;;
esac
fi
fi
} &&
- complete -F _svk svk
+ complete -F _comp_cmd_svk svk
# ex: filetype=sh