2014-03-19 16:01:44 +01:00
|
|
|
_icingacli_completion()
|
2014-01-22 12:45:42 +01:00
|
|
|
{
|
|
|
|
local cur opts
|
|
|
|
opts="${COMP_WORDS[*]}"
|
|
|
|
cur="${COMP_WORDS[COMP_CWORD]}"
|
2014-05-22 16:30:53 +02:00
|
|
|
COMPREPLY=($($opts --autocomplete --autoindex $COMP_CWORD < /dev/null))
|
2014-01-22 12:45:42 +01:00
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2014-03-19 16:01:44 +01:00
|
|
|
complete -F _icingacli_completion icingacli
|