diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 01:03:19 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 01:03:19 +0000 |
commit | 6c09f2a45c5541e9c207d14fc7aa21a4a0066bde (patch) | |
tree | 0221189d367bf661f6f9493c4f17a03f0dd4b7d2 /completions/wsimport | |
parent | Releasing progress-linux version 1:2.11-8~progress7.99u1. (diff) | |
download | bash-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/wsimport')
-rw-r--r-- | completions/wsimport | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/completions/wsimport b/completions/wsimport index d5bec9f..cee8c09 100644 --- a/completions/wsimport +++ b/completions/wsimport @@ -1,48 +1,48 @@ # wsimport(1) completion -*- shell-script -*- -_wsimport() +_comp_cmd_wsimport() { - local cur prev words cword - _init_completion -n : || return + local cur prev words cword comp_args + _comp_initialize -n : -- "$@" || return case $prev in -help | -version | -B | -p | -wsdllocation) return ;; -b) - _filedir '@(xml|xjb)' + _comp_compgen_filedir '@(xml|xjb)' return ;; -catalog) - _filedir '@(xml|soc|catalog)' + _comp_compgen_filedir '@(xml|soc|catalog)' return ;; -d | –s) - _filedir -d + _comp_compgen_filedir -d return ;; -target) - COMPREPLY=($(compgen -W '2.0 2.1 2.2' -- "$cur")) + _comp_compgen -- -W '2.0 2.1 2.2' return ;; -clientjar) - _filedir jar + _comp_compgen_filedir jar return ;; esac if [[ $cur == -httpproxy:* ]]; then - _known_hosts_real -- "${cur#-httpproxy:}" + _comp_compgen_known_hosts -- "${cur#-httpproxy:}" return elif [[ $cur == -* ]]; then - COMPREPLY=($(compgen -W '$(_parse_help "$1" -help)' -- "$cur")) + _comp_compgen_help -- -help [[ ${COMPREPLY-} == *: ]] && compopt -o nospace - __ltrim_colon_completions "$cur" + _comp_ltrim_colon_completions "$cur" return fi - _filedir wsdl + _comp_compgen_filedir wsdl } && - complete -F _wsimport wsimport + complete -F _comp_cmd_wsimport wsimport # ex: filetype=sh |