2011-11-01 22:14:45 +02:00
|
|
|
# munin-update completion -*- shell-script -*-
|
2011-10-12 23:01:10 +03:00
|
|
|
|
|
|
|
_munin_update()
|
|
|
|
{
|
|
|
|
local cur prev words cword
|
|
|
|
_init_completion || return
|
|
|
|
|
|
|
|
case $prev in
|
|
|
|
--config)
|
|
|
|
_filedir
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
--host)
|
|
|
|
_known_hosts_real "$cur"
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
if [[ "$cur" == -* ]]; then
|
2013-02-17 23:49:30 +02:00
|
|
|
COMPREPLY=( $( compgen -W '--force-root --noforce-root --service --host
|
|
|
|
--config --help --debug --nodebug --fork --nofork --stdout
|
|
|
|
--nostdout --timeout' -- "$cur" ) )
|
2011-10-12 23:01:10 +03:00
|
|
|
fi
|
|
|
|
} &&
|
|
|
|
complete -F _munin_update munin-update
|
|
|
|
|
|
|
|
# ex: ts=4 sw=4 et filetype=sh
|