Andrew Jeffery | c182e5e | 2018-02-26 10:41:33 +1030 | [diff] [blame] | 1 | _obmcutil() { |
2 | COMPREPLY=() | ||||
3 | cur=${COMP_WORDS[COMP_CWORD]} | ||||
4 | |||||
5 | opts="bmcstate bootprogress chassiskill chassisoff chassison chassisstate hoststate power poweroff poweron state -h --help -v --verbose -w --wait" | ||||
6 | |||||
7 | # complete -* with long options. | ||||
8 | COMPREPLY=($(compgen -W "$opts" -- $cur)) | ||||
9 | } | ||||
10 | |||||
11 | complete -F _obmcutil obmcutil |