diff options
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 |