2011-11-01 22:14:45 +02:00
|
|
|
# bash completion for xmlwf(1) -*- shell-script -*-
|
2009-07-07 18:47:33 +03:00
|
|
|
|
|
|
|
_xmlwf()
|
|
|
|
{
|
2011-04-21 11:04:51 +03:00
|
|
|
local cur prev words cword
|
|
|
|
_init_completion || return
|
2009-07-07 18:47:33 +03:00
|
|
|
|
2009-12-30 00:39:59 +01:00
|
|
|
case $prev in
|
2009-10-04 19:42:50 +02:00
|
|
|
-d)
|
|
|
|
_filedir -d
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
-e)
|
|
|
|
COMPREPLY=( $( compgen -W 'US-ASCII UTF-8 UTF-16 \
|
|
|
|
ISO-8859-1' -- "$cur" ) )
|
|
|
|
return 0
|
|
|
|
;;
|
2011-05-04 23:02:13 +03:00
|
|
|
-v)
|
|
|
|
return 0
|
|
|
|
;;
|
2009-10-04 19:42:50 +02:00
|
|
|
esac
|
2009-07-07 18:47:33 +03:00
|
|
|
|
2009-10-04 19:42:50 +02:00
|
|
|
if [[ "$cur" == -* ]]; then
|
2011-05-04 23:02:13 +03:00
|
|
|
COMPREPLY=( $( compgen -W '$( _parse_usage "$1" )' -- "$cur" ) )
|
2009-10-04 19:42:50 +02:00
|
|
|
return 0
|
|
|
|
fi
|
2009-07-07 18:47:33 +03:00
|
|
|
|
2011-11-01 19:19:43 +02:00
|
|
|
_filedir '@(*ml|htm|svg|xs[dl]|rng|wsdl|jnlp|tld)'
|
2009-07-07 18:47:33 +03:00
|
|
|
} &&
|
2010-11-01 19:26:53 +02:00
|
|
|
complete -F _xmlwf xmlwf
|
2009-10-01 20:54:51 +03:00
|
|
|
|
2009-10-04 19:42:50 +02:00
|
|
|
# ex: ts=4 sw=4 et filetype=sh
|