# wsimport(1) completion -*- shell-script -*- proc _wsimport { local cur prev words cword _init_completion -n : || return match $prev { with -help|-version|-B|-p|-wsdllocation return with -b _filedir '@(xml|xjb)' return with -catalog _filedir '@(xml|soc|catalog)' return with -d|–s _filedir -d return with -target setglobal COMPREPLY = ''( $( compgen -W '2.0 2.1 2.2' -- "$cur" ) ) return with -clientjar _filedir jar return } if [[ $cur == -httpproxy:* ]] { _known_hosts_real $(cur#-httpproxy:) return } elif [[ $cur == -* ]] { setglobal COMPREPLY = ''( $( compgen -W '$( _parse_help "$1" -help )' \ -- "$cur" ) ) [[ $COMPREPLY == *: ]] && compopt -o nospace __ltrim_colon_completions $cur return } _filedir wsdl } && complete -F _wsimport wsimport # ex: ts=4 sw=4 et filetype=sh