summaryrefslogtreecommitdiffstats
path: root/completions/_svnadmin
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 01:03:18 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 01:03:18 +0000
commitf4acb49ea148cdd899f7f29f1591c7bc853c2135 (patch)
treeb62d60873864065d6428a84a119dd8a3c90f1397 /completions/_svnadmin
parentAdding upstream version 1:2.11. (diff)
downloadbash-completion-f4acb49ea148cdd899f7f29f1591c7bc853c2135.tar.xz
bash-completion-f4acb49ea148cdd899f7f29f1591c7bc853c2135.zip
Adding upstream version 1:2.12.0.upstream/1%2.12.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--completions/_svnadmin22
1 files changed, 11 insertions, 11 deletions
diff --git a/completions/_svnadmin b/completions/_svnadmin
index 654fd3e..6b4a423 100644
--- a/completions/_svnadmin
+++ b/completions/_svnadmin
@@ -3,10 +3,10 @@
# Use of this file is deprecated. Upstream completion is available in
# subversion >= 0.12.0, use that instead.
-_svnadmin()
+_comp_cmd_svnadmin()
{
- local cur prev words cword
- _init_completion || return
+ local cur prev words cword comp_args
+ _comp_initialize -- "$@" || return
local commands
commands='create deltify dump help ? hotcopy list-dblogs list-unused-dblogs
@@ -14,18 +14,18 @@ _svnadmin()
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
--config-dir)
- _filedir -d
+ _comp_compgen_filedir -d
return
;;
--fs-type)
- COMPREPLY=($(compgen -W 'fsfs bdb' -- "$cur"))
+ _comp_compgen -- -W 'fsfs bdb'
return
;;
esac
@@ -62,17 +62,17 @@ _svnadmin()
esac
options+=" --help"
- COMPREPLY=($(compgen -W "$options" -- "$cur"))
+ _comp_compgen -- -W "$options"
else
if [[ $command == @(help|[h?]) ]]; then
- COMPREPLY=($(compgen -W "$commands" -- "$cur"))
+ _comp_compgen -- -W "$commands"
else
- _filedir
+ _comp_compgen_filedir
fi
fi
fi
} &&
- complete -F _svnadmin -o default svnadmin
+ complete -F _comp_cmd_svnadmin -o default svnadmin
# ex: filetype=sh