summaryrefslogtreecommitdiffstats
path: root/etc/bash_completion.d/icingacli
blob: f9be7bcf91b6d5458682caa998f8e9d05acbdf49 (plain)
1
2
3
4
5
6
7
8
9
10
_icingacli_completion()
{
  local cur opts
  opts="${COMP_WORDS[*]}"
  cur="${COMP_WORDS[COMP_CWORD]}"
  COMPREPLY=($($opts --autocomplete --autoindex $COMP_CWORD < /dev/null))
  return 0
}

complete -F _icingacli_completion icingacli