# gofed-base generated
# gofed-scan generated
# gofed-build generated
#
#  Completion for gofed:
#
# generate completion
PLUGIN_DIR="/etc/bash_completion.d"
_gofed()
{
    local cur prev opts
    _init_completion -s || return
    COMPREPLY=()
    opts=""
    for plugin in gofed-base gofed-scan gofed-build; do
        if [ -f "${PLUGIN_DIR}/${plugin}_bash_completion" ]; then
            source ${PLUGIN_DIR}/${plugin}_bash_completion
            opts="$opts $pl_commands"
        fi
    done
    case "${words[1]}" in
        version)
            ;;
        help)
            ;;
        bitbucket2spec)
            if [ "$bitbucket2spec_opts" != "" ]; then 
                if [ "$bitbucket2spec_opts" == "#" ]; then 
                    return 0
                fi
                COMPREPLY=( $(compgen -W '--commit --force --format --help --project --repo --scan-all-dirs --skip-dirs --with-build -c -f -h -p -r' -- ${cur}) )
                return 0
            fi
            ;;
        github2spec)
            if [ "$github2spec_opts" != "" ]; then 
                if [ "$github2spec_opts" == "#" ]; then 
                    return 0
                fi
                COMPREPLY=( $(compgen -W '--commit --force --format --help --project --repo --scan-all-dirs --skip-dirs --with-build -c -f -h -p -r' -- ${cur}) )
                return 0
            fi
            ;;
        googlecode2spec)
            if [ "$googlecode2spec_opts" != "" ]; then 
                if [ "$googlecode2spec_opts" == "#" ]; then 
                    return 0
                fi
                COMPREPLY=( $(compgen -W '--force --format --help --repo --rev --scan-all-dirs --skip-dirs --with-build -c -f -h -r' -- ${cur}) )
                return 0
            fi
            ;;
        repo2spec)
            if [ "$repo2spec_opts" != "" ]; then 
                if [ "$repo2spec_opts" == "#" ]; then 
                    return 0
                fi
                COMPREPLY=( $(compgen -W '--bitbucket --commit --detect --force --format --github --googlecode --help --project --repo --scan-all-dirs --skip-dirs --skip-errors --with-build -c -f -h -p -r' -- ${cur}) )
                return 0
            fi
            ;;
        ggi)
            if [ "$ggi_opts" != "" ]; then 
                if [ "$ggi_opts" == "#" ]; then 
                    return 0
                fi
                COMPREPLY=( $(compgen -W '--all --all-occurrences --classes --help --importpath --pkgdb --requires --scan-all-dirs --short --show-occurrence --skip-dirs --skip-errors --spec --verbose -a -c -d -h -r -s -v' -- ${cur}) )
                return 0
            fi
            ;;
        inspect)
            if [ "$inspect_opts" != "" ]; then 
                if [ "$inspect_opts" == "#" ]; then 
                    return 0
                fi
                COMPREPLY=( $(compgen -W '--dirs --help --prefix --provides --scan-all-dirs --skip-dirs --skip-errors --spec --test -d -h -p -s -t' -- ${cur}) )
                return 0
            fi
            ;;
        check-commit)
            if [ "$check_commit_opts" != "" ]; then 
                if [ "$check_commit_opts" == "#" ]; then 
                    return 0
                fi
                COMPREPLY=( $(compgen -W '--help --import_path -h -i' -- ${cur}) )
                return 0
            fi
            ;;
        check-deps)
            if [ "$check_deps_opts" != "" ]; then 
                if [ "$check_deps_opts" == "#" ]; then 
                    return 0
                fi
                COMPREPLY=( $(compgen -W '--dontpull --help --verbose -h -l -v' -- ${cur}) )
                return 0
            fi
            ;;
        lint)
            if [ "$lint_opts" != "" ]; then 
                if [ "$lint_opts" == "#" ]; then 
                    return 0
                fi
                COMPREPLY=( $(compgen -W '--archive --detect --help --info --scan-all-dirs --skip-dirs --sources --spec --verbose -a -d -h -i -s -v' -- ${cur}) )
                return 0
            fi
            ;;
        review)
            if [ "$review_opts" != "" ]; then 
                if [ "$review_opts" == "#" ]; then 
                    return 0
                fi
                COMPREPLY=( $(compgen -W '--help --skip-koji --skip-rpmlint-errors --user -h -u' -- ${cur}) )
                return 0
            fi
            ;;
        apidiff)
            if [ "$apidiff_opts" != "" ]; then 
                if [ "$apidiff_opts" == "#" ]; then 
                    return 0
                fi
                COMPREPLY=( $(compgen -W '--all --color --error --help --new-xml --old-xml --prefix --scan-all-dirs --skip-dirs --skip-errors --verbose -a -c -e -h -v' -- ${cur}) )
                return 0
            fi
            ;;
        scan-symbols)
            if [ "$scan_symbols_opts" != "" ]; then 
                if [ "$scan_symbols_opts" == "#" ]; then 
                    return 0
                fi
                COMPREPLY=( $(compgen -W '--all --help --list --prefix --provides --pure-xml --scan-all-dirs --skip-dirs --skip-errors --stats --usedip --xml -a -h -l -p -s -u -x' -- ${cur}) )
                return 0
            fi
            ;;
        scan-packages)
            if [ "$scan_packages_opts" != "" ]; then 
                if [ "$scan_packages_opts" == "#" ]; then 
                    return 0
                fi
                COMPREPLY=( $(compgen -W '--help --list --new --removed --update -h -l -n -r -u' -- ${cur}) )
                return 0
            fi
            ;;
        scan-imports)
            if [ "$scan_imports_opts" != "" ]; then 
                if [ "$scan_imports_opts" == "#" ]; then 
                    return 0
                fi
                COMPREPLY=( $(compgen -W '--create --full --help --imported --minimal --prefix --provided --verbose -c -f -h -i -m -p -s -v' -- ${cur}) )
                return 0
            fi
            ;;
        scan-deps)
            if [ "$scan_deps_opts" != "" ]; then 
                if [ "$scan_deps_opts" == "#" ]; then 
                    return 0
                fi
                COMPREPLY=( $(compgen -W '--cyclic --decompose --from-dir --from-xml --graphviz --help --leaves --outfile --roots --scan-all-dirs --skip-dirs --skip-errors --verbose -c -d -g -h -l -o -r -v' -- ${cur}) )
                return 0
            fi
            ;;
        bbo)
            if [ "$bbo_opts" != "" ]; then 
                if [ "$bbo_opts" == "#" ]; then 
                    return 0
                fi
                COMPREPLY=( $(compgen -W '--branches --dry --ebranches --help --master --verbose -h' -- ${cur}) )
                return 0
            fi
            ;;
        build)
            if [ "$build_opts" != "" ]; then 
                if [ "$build_opts" == "#" ]; then 
                    return 0
                fi
                COMPREPLY=( $(compgen -W '--branches --dry --ebranches --help --master --verbose -h' -- ${cur}) )
                return 0
            fi
            ;;
        bump)
            if [ "$bump_opts" != "" ]; then 
                if [ "$bump_opts" == "#" ]; then 
                    return 0
                fi
                COMPREPLY=( $(compgen -W '--commit --help --skip-checks --skip-master -c -h -s' -- ${cur}) )
                return 0
            fi
            ;;
        gcpmaster)
            if [ "$gcpmaster_opts" != "" ]; then 
                if [ "$gcpmaster_opts" == "#" ]; then 
                    return 0
                fi
                COMPREPLY=( $(compgen -W '--branches --dry --ebranches --help --master --verbose -h' -- ${cur}) )
                return 0
            fi
            ;;
        pull)
            if [ "$pull_opts" != "" ]; then 
                if [ "$pull_opts" == "#" ]; then 
                    return 0
                fi
                COMPREPLY=( $(compgen -W '--branches --dry --ebranches --help --master --verbose -h' -- ${cur}) )
                return 0
            fi
            ;;
        push)
            if [ "$push_opts" != "" ]; then 
                if [ "$push_opts" == "#" ]; then 
                    return 0
                fi
                COMPREPLY=( $(compgen -W '--branches --dry --ebranches --help --master --verbose -h' -- ${cur}) )
                return 0
            fi
            ;;
        scratch-build)
            if [ "$scratch_build_opts" != "" ]; then 
                if [ "$scratch_build_opts" == "#" ]; then 
                    return 0
                fi
                COMPREPLY=( $(compgen -W '--branches --dry --ebranches --help --master --verbose -h' -- ${cur}) )
                return 0
            fi
            ;;
        tools)
            if [ "$tools_opts" != "" ]; then 
                if [ "$tools_opts" == "#" ]; then 
                    return 0
                fi
                COMPREPLY=( $(compgen -W '--bbo --branches --build --dry --ebranches --from --gcp --git-reset --help --master --merge-master --pull --push --scratch --update --verbose --wait --waitbbo -h' -- ${cur}) )
                return 0
            fi
            ;;
        update)
            if [ "$update_opts" != "" ]; then 
                if [ "$update_opts" == "#" ]; then 
                    return 0
                fi
                COMPREPLY=( $(compgen -W '--branches --dry --ebranches --help --master --verbose -h' -- ${cur}) )
                return 0
            fi
            ;;
        wizard)
            if [ "$wizard_opts" != "" ]; then 
                if [ "$wizard_opts" == "#" ]; then 
                    return 0
                fi
                COMPREPLY=( $(compgen -W '--branches --build --dry --ebranches --help --master --push --scratch --update --verbose -h' -- ${cur}) )
                return 0
            fi
            ;;

        *)
        ;;
    esac

    COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
}
complete -F _gofed gofed
