#
# qeda command completion script
#
# Installation:
#     source <(qeda completion)
# ... or:
#     qeda completion >> ~/.bashrc  (or ~/.zshrc)
# ... or:
#     qeda completion > /usr/local/etc/bash_completion.d/qeda
# ... or:
#     qeda completion > /etc/bash_completion.d/qeda
#

_qeda()
{
    local cur prev opts base
    COMPREPLY=()
    cur="${COMP_WORDS[COMP_CWORD]}"
    prev="${COMP_WORDS[COMP_CWORD-1]}"

    #
    #  The basic options we'll complete.
    #
    opts="--help --verbose --version reset add load power ground config generate test"
    COMPREPLY=($(compgen -W "${opts}" -- ${cur}))
    return 0
}
complete -F _qeda qeda
