# Bash completions for shelly
# Auto-generated from the native Shelly CLI catalog. Do not edit.
_shelly_beta() {
    local cur prev action selector
    COMPREPLY=()
    cur="${COMP_WORDS[COMP_CWORD]}"
    prev="${COMP_WORDS[COMP_CWORD-1]}"
    action="${COMP_WORDS[1]}"
    selector="${COMP_WORDS[2]}"

    if (( COMP_CWORD == 1 )); then
        COMPREPLY=( $(compgen -W 'search install upgrade downgrade mark news list-updates list backup utility purify remove sync update config keyring run --help -? -h /? /h --version -V --no-confirm -n --ui-mode -U --json -j' -- "$cur") )
        return
    fi

    case "$action" in
        search)
            if (( COMP_CWORD == 2 )); then
                COMPREPLY=( $(compgen -W 'standard aur flatpak' -- "$cur") )
                return
            fi
            case "$selector" in
                standard) COMPREPLY=( $(compgen -W '--repos -r --available -v --installed -i --local -l --limit -t --page -p --show-hidden -w --detail --info -d --group -g --explicit -e --depends -D --help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") ) ;;
                aur) COMPREPLY=( $(compgen -W '--standard -s --pkgbuild -p --help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") ) ;;
                flatpak) COMPREPLY=( $(compgen -W '--limit -t --page -p --help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") ) ;;
            esac
            ;;
        install)
            if (( COMP_CWORD == 2 )); then
                COMPREPLY=( $(compgen -W 'standard appimage aur flatpak' -- "$cur") )
                return
            fi
            case "$selector" in
                standard) COMPREPLY=( $(compgen -W '--build-deps -b --make-deps -m --no-deps -d --upgrade -u --help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") ) ;;
                appimage) COMPREPLY=( $(compgen -W '--help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") ) ;;
                aur) COMPREPLY=( $(compgen -W '--build-deps -b --make-deps -m --chroot -c --check --version -v --help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") ) ;;
                flatpak) COMPREPLY=( $(compgen -W '--user --remote -r --branch -b --runtime --ref-file -e --bundle -u --repair -f --help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") ) ;;
            esac
            ;;
        upgrade)
            if (( COMP_CWORD == 2 )); then
                COMPREPLY=( $(compgen -W 'standard all appimage aur flatpak' -- "$cur") )
                return
            fi
            case "$selector" in
                standard) COMPREPLY=( $(compgen -W '--all -a --help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") ) ;;
                all) COMPREPLY=( $(compgen -W '--no-repo --no-aur --no-flatpak --no-appimage --help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") ) ;;
                appimage) COMPREPLY=( $(compgen -W '--help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") ) ;;
                aur) COMPREPLY=( $(compgen -W '--check --singlepane --help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") ) ;;
                flatpak) COMPREPLY=( $(compgen -W '--help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") ) ;;
            esac
            ;;
        downgrade)
            if (( COMP_CWORD == 2 )); then
                COMPREPLY=( $(compgen -W '--oldest -o --ignore -i --list-options -l --target -t --help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") )
                return
            fi
            case "$selector" in
                *) COMPREPLY=( $(compgen -W '--oldest -o --ignore -i --list-options -l --target -t --help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") ) ;;
            esac
            ;;
        mark)
            if (( COMP_CWORD == 2 )); then
                COMPREPLY=( $(compgen -W 'ignore hold explicit dependency' -- "$cur") )
                return
            fi
            case "$selector" in
                ignore) COMPREPLY=( $(compgen -W '--list -l --add -a --remove -r --clear -c --help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") ) ;;
                hold) COMPREPLY=( $(compgen -W '--list -l --add -a --remove -r --clear -c --help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") ) ;;
                explicit) COMPREPLY=( $(compgen -W '--help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") ) ;;
                dependency) COMPREPLY=( $(compgen -W '--help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") ) ;;
            esac
            ;;
        news)
            if (( COMP_CWORD == 2 )); then
                COMPREPLY=( $(compgen -W '--all -a --help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") )
                return
            fi
            case "$selector" in
                *) COMPREPLY=( $(compgen -W '--all -a --help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") ) ;;
            esac
            ;;
        list-updates)
            if (( COMP_CWORD == 2 )); then
                COMPREPLY=( $(compgen -W 'all standard appimage aur flatpak' -- "$cur") )
                return
            fi
            case "$selector" in
                all) COMPREPLY=( $(compgen -W '--show-hidden --help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") ) ;;
                standard) COMPREPLY=( $(compgen -W '--help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") ) ;;
                appimage) COMPREPLY=( $(compgen -W '--help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") ) ;;
                aur) COMPREPLY=( $(compgen -W '--show-hidden --help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") ) ;;
                flatpak) COMPREPLY=( $(compgen -W '--help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") ) ;;
            esac
            ;;
        list)
            if (( COMP_CWORD == 2 )); then
                COMPREPLY=( $(compgen -W 'standard appimage aur flatpak' -- "$cur") )
                return
            fi
            case "$selector" in
                standard) COMPREPLY=( $(compgen -W '--show-hidden -w --explicitOnly -e --dependencyOnly -d --help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") ) ;;
                appimage) COMPREPLY=( $(compgen -W '--help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") ) ;;
                aur) COMPREPLY=( $(compgen -W '--show-hidden --explicitOnly -e --dependencyOnly -d --help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") ) ;;
                flatpak) COMPREPLY=( $(compgen -W '--help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") ) ;;
            esac
            ;;
        backup)
            if (( COMP_CWORD == 2 )); then
                COMPREPLY=( $(compgen -W '--export -e --import -i --name -a --directory -d --help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") )
                return
            fi
            case "$selector" in
                *) COMPREPLY=( $(compgen -W '--export -e --import -i --name -a --directory -d --help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") ) ;;
            esac
            ;;
        utility)
            case "$prev" in
                --completions|-c) COMPREPLY=( $(compgen -W 'bash fish zsh' -- "$cur") ); return ;;
            esac
            if (( COMP_CWORD == 2 )); then
                COMPREPLY=( $(compgen -W '--fix-permissions -f --docs -d --completions -c --pacfiles -p --find -F --locate -l --pacmandb -P --backup -b --cachedir -C --output -o --sudo -s --threeway -3 --nocolor --search-path --diff-program --merge-program --help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") )
                return
            fi
            case "$selector" in
                *) COMPREPLY=( $(compgen -W '--fix-permissions -f --docs -d --completions -c --pacfiles -p --find -F --locate -l --pacmandb -P --backup -b --cachedir -C --output -o --sudo -s --threeway -3 --nocolor --search-path --diff-program --merge-program --help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") ) ;;
            esac
            ;;
        purify)
            if (( COMP_CWORD == 2 )); then
                COMPREPLY=( $(compgen -W 'standard flatpak' -- "$cur") )
                return
            fi
            case "$selector" in
                standard) COMPREPLY=( $(compgen -W '--dry-run -d --orphans -o --cache -c --help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") ) ;;
                flatpak) COMPREPLY=( $(compgen -W '--help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") ) ;;
            esac
            ;;
        remove)
            if (( COMP_CWORD == 2 )); then
                COMPREPLY=( $(compgen -W 'standard appimage aur flatpak' -- "$cur") )
                return
            fi
            case "$selector" in
                standard) COMPREPLY=( $(compgen -W '--cascade -c --no-cascade --opt-deps -o --ripple -i --remove-config --local -l --force -f --help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") ) ;;
                appimage) COMPREPLY=( $(compgen -W '--remove-config --help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") ) ;;
                aur) COMPREPLY=( $(compgen -W '--cascade -c --opt-deps -o --ripple -i --help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") ) ;;
                flatpak) COMPREPLY=( $(compgen -W '--remove-unused -r --remove-config --help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") ) ;;
            esac
            ;;
        sync)
            if (( COMP_CWORD == 2 )); then
                COMPREPLY=( $(compgen -W 'appimage flatpak --force -f --help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") )
                return
            fi
            case "$selector" in
                appimage) COMPREPLY=( $(compgen -W '--prerelease -p --help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") ) ;;
                flatpak) COMPREPLY=( $(compgen -W '--remote-url -u --system -s --gpg-verify -g --help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") ) ;;
                *) COMPREPLY=( $(compgen -W '--force -f --help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") ) ;;
            esac
            ;;
        update)
            if (( COMP_CWORD == 2 )); then
                COMPREPLY=( $(compgen -W 'standard aur flatpak' -- "$cur") )
                return
            fi
            case "$selector" in
                standard) COMPREPLY=( $(compgen -W '--help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") ) ;;
                aur) COMPREPLY=( $(compgen -W '--check --help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") ) ;;
                flatpak) COMPREPLY=( $(compgen -W '--help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") ) ;;
            esac
            ;;
        config)
            if (( COMP_CWORD == 2 )); then
                COMPREPLY=( $(compgen -W 'get set reset parallel --help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") )
                return
            fi
            case "$selector" in
                get) COMPREPLY=( $(compgen -W '--help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") ) ;;
                set) COMPREPLY=( $(compgen -W '--help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") ) ;;
                reset) COMPREPLY=( $(compgen -W '--help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") ) ;;
                parallel) COMPREPLY=( $(compgen -W '--help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") ) ;;
                *) COMPREPLY=( $(compgen -W '--help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") ) ;;
            esac
            ;;
        keyring)
            if (( COMP_CWORD == 2 )); then
                COMPREPLY=( $(compgen -W 'init list refresh lsign populate recv' -- "$cur") )
                return
            fi
            case "$selector" in
                init) COMPREPLY=( $(compgen -W '--help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") ) ;;
                list) COMPREPLY=( $(compgen -W '--help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") ) ;;
                refresh) COMPREPLY=( $(compgen -W '--help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") ) ;;
                lsign) COMPREPLY=( $(compgen -W '--help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") ) ;;
                populate) COMPREPLY=( $(compgen -W '--help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") ) ;;
                recv) COMPREPLY=( $(compgen -W '--keyserver --help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") ) ;;
            esac
            ;;
        run)
            if (( COMP_CWORD == 2 )); then
                COMPREPLY=( $(compgen -W 'flatpak appimage' -- "$cur") )
                return
            fi
            case "$selector" in
                flatpak) COMPREPLY=( $(compgen -W '--kill -k --list -l --help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") ) ;;
                appimage) COMPREPLY=( $(compgen -W '--kill -k --help -? -h /? /h --no-confirm -n --ui-mode -U --json -j' -- "$cur") ) ;;
            esac
            ;;
    esac
}
complete -F _shelly_beta shelly-beta
