summaryrefslogtreecommitdiffstats
path: root/pytools/obmcutil-completion.sh
blob: 97900257f5b887ed12ca77e53646879453f63ea5 (plain)
1
2
3
4
5
6
7
8
9
10
11
_obmcutil() {
    COMPREPLY=()
    cur=${COMP_WORDS[COMP_CWORD]}

    opts="bmcstate bootprogress chassiskill chassisoff chassison chassisstate hoststate power poweroff poweron state -h --help -v --verbose -w --wait"

    # complete -* with long options.
    COMPREPLY=($(compgen -W "$opts" -- $cur))
}

complete -F _obmcutil obmcutil
OpenPOWER on IntegriCloud