#compdef shelly-beta
# Zsh completions for shelly
# Auto-generated from the native Shelly CLI catalog. Do not edit.
_shelly-beta() {
    local action
    action=$words[2]
    if (( CURRENT == 2 )); then
        local -a actions
        actions=(
            'search:Search ALPM repositories, the AUR, or cached Flatpak AppStream catalogs.'
            'install:Install packages or applications from ALPM repositories, the AUR, AppImages, Flatpak remotes, or local Flatpak files, and repair installed Flatpaks.'
            'upgrade:Upgrade standard, AUR, AppImage, or Flatpak packages, including all supported backends together.'
            'downgrade:Select and install an older version of a standard package.'
            'mark:Manage IgnorePkg and HoldPkg package marks, or change an installed package'\''s explicit/dependency reason.'
            'news:Read Arch Linux news and track viewed entries.'
            'list-updates:List available updates for standard, AUR, AppImage, or Flatpak packages.'
            'list:List installed standard packages, AppImages, AUR packages, or Flatpak applications.'
            'backup:Back up explicitly installed packages as type-grouped TOML.'
            'utility:Repair Shelly directory ownership, manage pacfiles, or generate CLI documentation and shell completions.'
            'purify:Remove corrupted or orphaned ALPM packages, optionally clean the package cache, or remove unused Flatpak dependencies.'
            'remove:Remove standard or local packages, AUR packages, AppImages, or Flatpak applications.'
            'sync:Synchronize ALPM package databases, AppImage metadata, or cached Flatpak AppStream metadata.'
            'update:Update selected standard, AUR, or Flatpak packages.'
            'config:Read and modify Shelly configuration.'
            'keyring:Initialize, inspect, refresh, populate, receive, or locally sign keys in the pacman keyring.'
            'run:Launch or stop a Flatpak or AppImage application.'
        )
        _describe 'command' actions
        return
    fi
    case $action in
        search)
            if (( CURRENT == 3 )); then
                local -a commands
                commands=(standard aur flatpak)
                _describe 'command' commands
                return
            fi
            case $words[3] in
                standard) _arguments '{--repos,-r}[List repositories parsed from pacman.conf and ignore other search modifiers]' '{--available,-v}[Search packages from the configured ALPM synchronization databases]' '{--installed,-i}[Search packages from the local ALPM database]' '{--local,-l}[Search Shelly-managed binary packages installed under /opt/shelly]' '{--limit,-t}[Maximum number of search results to return per page]:limit' '{--page,-p}[Page number for paginated results]:page' '{--show-hidden,-w}[Include packages hidden by pacman IgnorePkg configuration]' '{--detail,--info,-d}[Show complete metadata for one exact ALPM package name]' '{--group,-g}[List package groups or restrict available packages to the requested group]' '{--explicit,-e}[Shows only explicitly installed pacakges]' '{--depends,-D}[Shows only dependency packages]' '{--help,-?,-h,/?,/h}[Show command-specific help and usage information]' '{--no-confirm,-n}[Use safe automatic answers instead of prompting]' '{--ui-mode,-U}[Emit framed output for the Shelly UI]' '{--json,-j}[Output structured JSON where the command supports it]' ;;
                aur) _arguments '{--standard,-s}[Append high-confidence standard ALPM repository matches to the AUR results]' '{--pkgbuild,-p}[Fetch and display the PKGBUILD for each exact AUR package name]' '{--help,-?,-h,/?,/h}[Show command-specific help and usage information]' '{--no-confirm,-n}[Use safe automatic answers instead of prompting]' '{--ui-mode,-U}[Emit framed output for the Shelly UI]' '{--json,-j}[Output structured JSON where the command supports it]' ;;
                flatpak) _arguments '{--limit,-t}[Maximum number of search results to return per page]:limit' '{--page,-p}[Page number for paginated results]:page' '{--help,-?,-h,/?,/h}[Show command-specific help and usage information]' '{--no-confirm,-n}[Use safe automatic answers instead of prompting]' '{--ui-mode,-U}[Emit framed output for the Shelly UI]' '{--json,-j}[Output structured JSON where the command supports it]' ;;
            esac
            ;;
        install)
            if (( CURRENT == 3 )); then
                local -a commands
                commands=(standard appimage aur flatpak)
                _describe 'command' commands
                return
            fi
            case $words[3] in
                standard) _arguments '{--build-deps,-b}[Install build dependencies for the requested packages]' '{--make-deps,-m}[Install make dependencies for the requested packages]' '{--no-deps,-d}[Pass the ALPM nodeps transaction flag when installing repository packages]' '{--upgrade,-u}[Synchronize and upgrade the standard system before installing the requested repository packages]' '{--help,-?,-h,/?,/h}[Show command-specific help and usage information]' '{--no-confirm,-n}[Use safe automatic answers instead of prompting]' '{--ui-mode,-U}[Emit framed output for the Shelly UI]' '{--json,-j}[Output structured JSON where the command supports it]' ;;
                appimage) _arguments '{--help,-?,-h,/?,/h}[Show command-specific help and usage information]' '{--no-confirm,-n}[Use safe automatic answers instead of prompting]' '{--ui-mode,-U}[Emit framed output for the Shelly UI]' '{--json,-j}[Output structured JSON where the command supports it]' ;;
                aur) _arguments '{--build-deps,-b}[Install build dependencies for the requested packages]' '{--make-deps,-m}[Install make dependencies for the requested packages]' '{--chroot,-c}[Build packages in a clean chroot with makechrootpkg]' '--check[Enable the PKGBUILD check() function during package builds]' '{--version,-v}[Install exactly one AUR package from the following Git commit operand]' '{--help,-?,-h,/?,/h}[Show command-specific help and usage information]' '{--no-confirm,-n}[Use safe automatic answers instead of prompting]' '{--ui-mode,-U}[Emit framed output for the Shelly UI]' '{--json,-j}[Output structured JSON where the command supports it]' ;;
                flatpak) _arguments '--user[Install into the invoking user'\''s Flatpak installation instead of the system installation]' '{--remote,-r}[Install from this remote instead of resolving a remote from cached AppStream metadata]:remote' '{--branch,-b}[Install this branch; defaults to stable]:branch' '--runtime[Build a runtime ref instead of an application ref]' '{--ref-file,-e}[Treat the package operand as a local .flatpakref file]' '{--bundle,-u}[Treat the package operand as a local Flatpak bundle]' '{--repair,-f}[Reinstall the installed Flatpak and its dependencies while preserving application configuration]' '{--help,-?,-h,/?,/h}[Show command-specific help and usage information]' '{--no-confirm,-n}[Use safe automatic answers instead of prompting]' '{--ui-mode,-U}[Emit framed output for the Shelly UI]' '{--json,-j}[Output structured JSON where the command supports it]' ;;
            esac
            ;;
        upgrade)
            if (( CURRENT == 3 )); then
                local -a commands
                commands=(standard all appimage aur flatpak)
                _describe 'command' commands
                return
            fi
            case $words[3] in
                standard) _arguments '{--all,-a}[Upgrade standard, AUR, Flatpak, and AppImage backends]' '{--help,-?,-h,/?,/h}[Show command-specific help and usage information]' '{--no-confirm,-n}[Use safe automatic answers instead of prompting]' '{--ui-mode,-U}[Emit framed output for the Shelly UI]' '{--json,-j}[Output structured JSON where the command supports it]' ;;
                all) _arguments '--no-repo[Skip the standard ALPM backend]' '--no-aur[Skip the AUR backend]' '--no-flatpak[Skip the Flatpak backend]' '--no-appimage[Skip the AppImage backend]' '{--help,-?,-h,/?,/h}[Show command-specific help and usage information]' '{--no-confirm,-n}[Use safe automatic answers instead of prompting]' '{--ui-mode,-U}[Emit framed output for the Shelly UI]' '{--json,-j}[Output structured JSON where the command supports it]' ;;
                appimage) _arguments '{--help,-?,-h,/?,/h}[Show command-specific help and usage information]' '{--no-confirm,-n}[Use safe automatic answers instead of prompting]' '{--ui-mode,-U}[Emit framed output for the Shelly UI]' '{--json,-j}[Output structured JSON where the command supports it]' ;;
                aur) _arguments '--check[Run each PKGBUILD check() function during AUR upgrade builds]' '--singlepane[Use the shared pacman-style linear output (already the native Zig non-UI output mode)]' '{--help,-?,-h,/?,/h}[Show command-specific help and usage information]' '{--no-confirm,-n}[Use safe automatic answers instead of prompting]' '{--ui-mode,-U}[Emit framed output for the Shelly UI]' '{--json,-j}[Output structured JSON where the command supports it]' ;;
                flatpak) _arguments '{--help,-?,-h,/?,/h}[Show command-specific help and usage information]' '{--no-confirm,-n}[Use safe automatic answers instead of prompting]' '{--ui-mode,-U}[Emit framed output for the Shelly UI]' '{--json,-j}[Output structured JSON where the command supports it]' ;;
            esac
            ;;
        downgrade)
            _arguments '{--oldest,-o}[Select the oldest available version instead of prompting or selecting the newest version]' '{--ignore,-i}[Add the package to IgnorePkg after a successful downgrade]' '{--list-options,-l}[List cached and archived versions without installing one]' '{--target,-t}[Install an exact version-release or package filename]:target' '{--help,-?,-h,/?,/h}[Show command-specific help and usage information]' '{--no-confirm,-n}[Use safe automatic answers instead of prompting]' '{--ui-mode,-U}[Emit framed output for the Shelly UI]' '{--json,-j}[Output structured JSON where the command supports it]'
            ;;
        mark)
            if (( CURRENT == 3 )); then
                local -a commands
                commands=(ignore hold explicit dependency)
                _describe 'command' commands
                return
            fi
            case $words[3] in
                ignore) _arguments '{--list,-l}[List packages in IgnorePkg]' '{--add,-a}[Add packages to IgnorePkg]' '{--remove,-r}[Remove packages from IgnorePkg]' '{--clear,-c}[Clear IgnorePkg]' '{--help,-?,-h,/?,/h}[Show command-specific help and usage information]' '{--no-confirm,-n}[Use safe automatic answers instead of prompting]' '{--ui-mode,-U}[Emit framed output for the Shelly UI]' '{--json,-j}[Output structured JSON where the command supports it]' ;;
                hold) _arguments '{--list,-l}[List packages in HoldPkg]' '{--add,-a}[Add packages to HoldPkg]' '{--remove,-r}[Remove packages from HoldPkg]' '{--clear,-c}[Clear HoldPkg except for Shelly'\''s protected entry]' '{--help,-?,-h,/?,/h}[Show command-specific help and usage information]' '{--no-confirm,-n}[Use safe automatic answers instead of prompting]' '{--ui-mode,-U}[Emit framed output for the Shelly UI]' '{--json,-j}[Output structured JSON where the command supports it]' ;;
                explicit) _arguments '{--help,-?,-h,/?,/h}[Show command-specific help and usage information]' '{--no-confirm,-n}[Use safe automatic answers instead of prompting]' '{--ui-mode,-U}[Emit framed output for the Shelly UI]' '{--json,-j}[Output structured JSON where the command supports it]' ;;
                dependency) _arguments '{--help,-?,-h,/?,/h}[Show command-specific help and usage information]' '{--no-confirm,-n}[Use safe automatic answers instead of prompting]' '{--ui-mode,-U}[Emit framed output for the Shelly UI]' '{--json,-j}[Output structured JSON where the command supports it]' ;;
            esac
            ;;
        news)
            _arguments '{--all,-a}[Show previously viewed news as well as unread entries]' '{--help,-?,-h,/?,/h}[Show command-specific help and usage information]' '{--no-confirm,-n}[Use safe automatic answers instead of prompting]' '{--ui-mode,-U}[Emit framed output for the Shelly UI]' '{--json,-j}[Output structured JSON where the command supports it]'
            ;;
        list-updates)
            if (( CURRENT == 3 )); then
                local -a commands
                commands=(all standard appimage aur flatpak)
                _describe 'command' commands
                return
            fi
            case $words[3] in
                all) _arguments '--show-hidden[Include hidden packages]' '{--help,-?,-h,/?,/h}[Show command-specific help and usage information]' '{--no-confirm,-n}[Use safe automatic answers instead of prompting]' '{--ui-mode,-U}[Emit framed output for the Shelly UI]' '{--json,-j}[Output structured JSON where the command supports it]' ;;
                standard) _arguments '{--help,-?,-h,/?,/h}[Show command-specific help and usage information]' '{--no-confirm,-n}[Use safe automatic answers instead of prompting]' '{--ui-mode,-U}[Emit framed output for the Shelly UI]' '{--json,-j}[Output structured JSON where the command supports it]' ;;
                appimage) _arguments '{--help,-?,-h,/?,/h}[Show command-specific help and usage information]' '{--no-confirm,-n}[Use safe automatic answers instead of prompting]' '{--ui-mode,-U}[Emit framed output for the Shelly UI]' '{--json,-j}[Output structured JSON where the command supports it]' ;;
                aur) _arguments '--show-hidden[Include hidden packages]' '{--help,-?,-h,/?,/h}[Show command-specific help and usage information]' '{--no-confirm,-n}[Use safe automatic answers instead of prompting]' '{--ui-mode,-U}[Emit framed output for the Shelly UI]' '{--json,-j}[Output structured JSON where the command supports it]' ;;
                flatpak) _arguments '{--help,-?,-h,/?,/h}[Show command-specific help and usage information]' '{--no-confirm,-n}[Use safe automatic answers instead of prompting]' '{--ui-mode,-U}[Emit framed output for the Shelly UI]' '{--json,-j}[Output structured JSON where the command supports it]' ;;
            esac
            ;;
        list)
            if (( CURRENT == 3 )); then
                local -a commands
                commands=(standard appimage aur flatpak)
                _describe 'command' commands
                return
            fi
            case $words[3] in
                standard) _arguments '{--show-hidden,-w}[Include hidden packages]' '{--explicitOnly,-e}[List explicitly installed packages only]' '{--dependencyOnly,-d}[List dependency-installed packages only]' '{--help,-?,-h,/?,/h}[Show command-specific help and usage information]' '{--no-confirm,-n}[Use safe automatic answers instead of prompting]' '{--ui-mode,-U}[Emit framed output for the Shelly UI]' '{--json,-j}[Output structured JSON where the command supports it]' ;;
                appimage) _arguments '{--help,-?,-h,/?,/h}[Show command-specific help and usage information]' '{--no-confirm,-n}[Use safe automatic answers instead of prompting]' '{--ui-mode,-U}[Emit framed output for the Shelly UI]' '{--json,-j}[Output structured JSON where the command supports it]' ;;
                aur) _arguments '--show-hidden[Include hidden packages]' '{--explicitOnly,-e}[List explicitly installed packages only]' '{--dependencyOnly,-d}[List dependency-installed packages only]' '{--help,-?,-h,/?,/h}[Show command-specific help and usage information]' '{--no-confirm,-n}[Use safe automatic answers instead of prompting]' '{--ui-mode,-U}[Emit framed output for the Shelly UI]' '{--json,-j}[Output structured JSON where the command supports it]' ;;
                flatpak) _arguments '{--help,-?,-h,/?,/h}[Show command-specific help and usage information]' '{--no-confirm,-n}[Use safe automatic answers instead of prompting]' '{--ui-mode,-U}[Emit framed output for the Shelly UI]' '{--json,-j}[Output structured JSON where the command supports it]' ;;
            esac
            ;;
        backup)
            _arguments '{--export,-e}[Exports a declaritive list of explicitly installed standard packages, AUR packages, and Flatpak applications]' '{--import,-i}[Imports a previously exported backup and installs the latest versions of all items listed]' '{--name,-a}[File name without the .toml extension]:name' '{--directory,-d}[Directory in which to write/read the backup]:directory' '{--help,-?,-h,/?,/h}[Show command-specific help and usage information]' '{--no-confirm,-n}[Use safe automatic answers instead of prompting]' '{--ui-mode,-U}[Emit framed output for the Shelly UI]' '{--json,-j}[Output structured JSON where the command supports it]'
            ;;
        utility)
            _arguments '{--fix-permissions,-f}[Restore the invoking user'\''s ownership of Shelly'\''s configuration, cache, and data directories]' '{--docs,-d}[Write Markdown CLI reference documentation to standard output]' '{--completions,-c}[Write a Bash, Fish, or Zsh completion script to standard output]:completions:(bash fish zsh)' '{--pacfiles,-p}[Run the pacdiff-compatible pacnew, pacorig, and pacsave maintenance workflow]' '{--find,-F}[Recursively find pacfiles instead of reading the pacman database]' '{--locate,-l}[Find pacfiles with locate instead of reading the pacman database]' '{--pacmandb,-P}[Search backup paths from the local pacman database (default)]' '{--backup,-b}[Save the old original as .bak before overwriting]' '{--cachedir,-C}[Package cache directory for three-way base archives; repeat to add directories]:cachedir' '{--output,-o}[Print discovered pacfile paths without modifying them]' '{--sudo,-s}[Explicitly request elevation; interactive pacfile maintenance elevates automatically]' '{--threeway,-3}[Use a cached older package as the third input when viewing differences]' '--nocolor[Disable colored pacfile status output]' '--search-path[Path to scan with --find; repeat to add paths]:search-path' '--diff-program[Diff command, overriding DIFFPROG]:diff-program' '--merge-program[Merge command, overriding MERGEPROG]:merge-program' '{--help,-?,-h,/?,/h}[Show command-specific help and usage information]' '{--no-confirm,-n}[Use safe automatic answers instead of prompting]' '{--ui-mode,-U}[Emit framed output for the Shelly UI]' '{--json,-j}[Output structured JSON where the command supports it]'
            ;;
        purify)
            if (( CURRENT == 3 )); then
                local -a commands
                commands=(standard flatpak)
                _describe 'command' commands
                return
            fi
            case $words[3] in
                standard) _arguments '{--dry-run,-d}[Show the cleanup plan without changing packages]' '{--orphans,-o}[Include orphaned packages]' '{--cache,-c}[Remove older cached package versions while retaining this many versions]:cache' '{--help,-?,-h,/?,/h}[Show command-specific help and usage information]' '{--no-confirm,-n}[Use safe automatic answers instead of prompting]' '{--ui-mode,-U}[Emit framed output for the Shelly UI]' '{--json,-j}[Output structured JSON where the command supports it]' ;;
                flatpak) _arguments '{--help,-?,-h,/?,/h}[Show command-specific help and usage information]' '{--no-confirm,-n}[Use safe automatic answers instead of prompting]' '{--ui-mode,-U}[Emit framed output for the Shelly UI]' '{--json,-j}[Output structured JSON where the command supports it]' ;;
            esac
            ;;
        remove)
            if (( CURRENT == 3 )); then
                local -a commands
                commands=(standard appimage aur flatpak)
                _describe 'command' commands
                return
            fi
            case $words[3] in
                standard) _arguments '{--cascade,-c}[Remove dependencies that are no longer needed]' '--no-cascade[Keep dependencies that become unneeded after removal]' '{--opt-deps,-o}[Remove unused optional dependencies installed with the packages]' '{--ripple,-i}[Remove packages that depend on the removed packages]' '--remove-config[Remove configuration associated with the removed package]' '{--local,-l}[Remove Shelly-managed local binaries]' '{--force,-f}[Force local binary removal]' '{--help,-?,-h,/?,/h}[Show command-specific help and usage information]' '{--no-confirm,-n}[Use safe automatic answers instead of prompting]' '{--ui-mode,-U}[Emit framed output for the Shelly UI]' '{--json,-j}[Output structured JSON where the command supports it]' ;;
                appimage) _arguments '--remove-config[Remove configuration associated with the removed package]' '{--help,-?,-h,/?,/h}[Show command-specific help and usage information]' '{--no-confirm,-n}[Use safe automatic answers instead of prompting]' '{--ui-mode,-U}[Emit framed output for the Shelly UI]' '{--json,-j}[Output structured JSON where the command supports it]' ;;
                aur) _arguments '{--cascade,-c}[Remove dependencies that are no longer needed]' '{--opt-deps,-o}[Remove unused optional dependencies installed with the packages]' '{--ripple,-i}[Remove packages that depend on the removed packages]' '{--help,-?,-h,/?,/h}[Show command-specific help and usage information]' '{--no-confirm,-n}[Use safe automatic answers instead of prompting]' '{--ui-mode,-U}[Emit framed output for the Shelly UI]' '{--json,-j}[Output structured JSON where the command supports it]' ;;
                flatpak) _arguments '{--remove-unused,-r}[Remove newly unused Flatpak dependencies]' '--remove-config[Remove configuration associated with the removed package]' '{--help,-?,-h,/?,/h}[Show command-specific help and usage information]' '{--no-confirm,-n}[Use safe automatic answers instead of prompting]' '{--ui-mode,-U}[Emit framed output for the Shelly UI]' '{--json,-j}[Output structured JSON where the command supports it]' ;;
            esac
            ;;
        sync)
            if (( CURRENT == 3 )); then
                local -a commands
                commands=( 'appimage' 'flatpak' )
                _alternative 'commands:command:commands' 'options:option:(--force -f --help -? -h /? /h --no-confirm -n --ui-mode -U --json -j)'
                return
            fi
            case $words[3] in
                appimage) _arguments '{--prerelease,-p}[Allow prerelease versions for the configured update source]' '{--help,-?,-h,/?,/h}[Show command-specific help and usage information]' '{--no-confirm,-n}[Use safe automatic answers instead of prompting]' '{--ui-mode,-U}[Emit framed output for the Shelly UI]' '{--json,-j}[Output structured JSON where the command supports it]' ;;
                flatpak) _arguments '{--remote-url,-u}[Remote URL or .flatpakrepo URL; required for remote add]:remote-url' '{--system,-s}[Use system scope; defaults to true]' '{--gpg-verify,-g}[Enable GPG verification when adding; defaults to true]' '{--help,-?,-h,/?,/h}[Show command-specific help and usage information]' '{--no-confirm,-n}[Use safe automatic answers instead of prompting]' '{--ui-mode,-U}[Emit framed output for the Shelly UI]' '{--json,-j}[Output structured JSON where the command supports it]' ;;
                *) _arguments '{--force,-f}[Force every configured ALPM package database to refresh]' '{--help,-?,-h,/?,/h}[Show command-specific help and usage information]' '{--no-confirm,-n}[Use safe automatic answers instead of prompting]' '{--ui-mode,-U}[Emit framed output for the Shelly UI]' '{--json,-j}[Output structured JSON where the command supports it]' ;;
            esac
            ;;
        update)
            if (( CURRENT == 3 )); then
                local -a commands
                commands=(standard aur flatpak)
                _describe 'command' commands
                return
            fi
            case $words[3] in
                standard) _arguments '{--help,-?,-h,/?,/h}[Show command-specific help and usage information]' '{--no-confirm,-n}[Use safe automatic answers instead of prompting]' '{--ui-mode,-U}[Emit framed output for the Shelly UI]' '{--json,-j}[Output structured JSON where the command supports it]' ;;
                aur) _arguments '--check[Run each PKGBUILD check() function during the rebuild]' '{--help,-?,-h,/?,/h}[Show command-specific help and usage information]' '{--no-confirm,-n}[Use safe automatic answers instead of prompting]' '{--ui-mode,-U}[Emit framed output for the Shelly UI]' '{--json,-j}[Output structured JSON where the command supports it]' ;;
                flatpak) _arguments '{--help,-?,-h,/?,/h}[Show command-specific help and usage information]' '{--no-confirm,-n}[Use safe automatic answers instead of prompting]' '{--ui-mode,-U}[Emit framed output for the Shelly UI]' '{--json,-j}[Output structured JSON where the command supports it]' ;;
            esac
            ;;
        config)
            if (( CURRENT == 3 )); then
                local -a commands
                commands=( 'get' 'set' 'reset' 'parallel' )
                _alternative 'commands:command:commands' 'options:option:(--help -? -h /? /h --no-confirm -n --ui-mode -U --json -j)'
                return
            fi
            case $words[3] in
                get) _arguments '{--help,-?,-h,/?,/h}[Show command-specific help and usage information]' '{--no-confirm,-n}[Use safe automatic answers instead of prompting]' '{--ui-mode,-U}[Emit framed output for the Shelly UI]' '{--json,-j}[Output structured JSON where the command supports it]' ;;
                set) _arguments '{--help,-?,-h,/?,/h}[Show command-specific help and usage information]' '{--no-confirm,-n}[Use safe automatic answers instead of prompting]' '{--ui-mode,-U}[Emit framed output for the Shelly UI]' '{--json,-j}[Output structured JSON where the command supports it]' ;;
                reset) _arguments '{--help,-?,-h,/?,/h}[Show command-specific help and usage information]' '{--no-confirm,-n}[Use safe automatic answers instead of prompting]' '{--ui-mode,-U}[Emit framed output for the Shelly UI]' '{--json,-j}[Output structured JSON where the command supports it]' ;;
                parallel) _arguments '{--help,-?,-h,/?,/h}[Show command-specific help and usage information]' '{--no-confirm,-n}[Use safe automatic answers instead of prompting]' '{--ui-mode,-U}[Emit framed output for the Shelly UI]' '{--json,-j}[Output structured JSON where the command supports it]' ;;
                *) _arguments '{--help,-?,-h,/?,/h}[Show command-specific help and usage information]' '{--no-confirm,-n}[Use safe automatic answers instead of prompting]' '{--ui-mode,-U}[Emit framed output for the Shelly UI]' '{--json,-j}[Output structured JSON where the command supports it]' ;;
            esac
            ;;
        keyring)
            if (( CURRENT == 3 )); then
                local -a commands
                commands=(init list refresh lsign populate recv)
                _describe 'command' commands
                return
            fi
            case $words[3] in
                init) _arguments '{--help,-?,-h,/?,/h}[Show command-specific help and usage information]' '{--no-confirm,-n}[Use safe automatic answers instead of prompting]' '{--ui-mode,-U}[Emit framed output for the Shelly UI]' '{--json,-j}[Output structured JSON where the command supports it]' ;;
                list) _arguments '{--help,-?,-h,/?,/h}[Show command-specific help and usage information]' '{--no-confirm,-n}[Use safe automatic answers instead of prompting]' '{--ui-mode,-U}[Emit framed output for the Shelly UI]' '{--json,-j}[Output structured JSON where the command supports it]' ;;
                refresh) _arguments '{--help,-?,-h,/?,/h}[Show command-specific help and usage information]' '{--no-confirm,-n}[Use safe automatic answers instead of prompting]' '{--ui-mode,-U}[Emit framed output for the Shelly UI]' '{--json,-j}[Output structured JSON where the command supports it]' ;;
                lsign) _arguments '{--help,-?,-h,/?,/h}[Show command-specific help and usage information]' '{--no-confirm,-n}[Use safe automatic answers instead of prompting]' '{--ui-mode,-U}[Emit framed output for the Shelly UI]' '{--json,-j}[Output structured JSON where the command supports it]' ;;
                populate) _arguments '{--help,-?,-h,/?,/h}[Show command-specific help and usage information]' '{--no-confirm,-n}[Use safe automatic answers instead of prompting]' '{--ui-mode,-U}[Emit framed output for the Shelly UI]' '{--json,-j}[Output structured JSON where the command supports it]' ;;
                recv) _arguments '--keyserver[Keyserver from which to receive keys]:keyserver' '{--help,-?,-h,/?,/h}[Show command-specific help and usage information]' '{--no-confirm,-n}[Use safe automatic answers instead of prompting]' '{--ui-mode,-U}[Emit framed output for the Shelly UI]' '{--json,-j}[Output structured JSON where the command supports it]' ;;
            esac
            ;;
        run)
            if (( CURRENT == 3 )); then
                local -a commands
                commands=(flatpak appimage)
                _describe 'command' commands
                return
            fi
            case $words[3] in
                flatpak) _arguments '{--kill,-k}[Stop the selected application instead of launching it]' '{--list,-l}[List running Flatpak applications and process identifiers]' '{--help,-?,-h,/?,/h}[Show command-specific help and usage information]' '{--no-confirm,-n}[Use safe automatic answers instead of prompting]' '{--ui-mode,-U}[Emit framed output for the Shelly UI]' '{--json,-j}[Output structured JSON where the command supports it]' ;;
                appimage) _arguments '{--kill,-k}[Stop the selected application instead of launching it]' '{--help,-?,-h,/?,/h}[Show command-specific help and usage information]' '{--no-confirm,-n}[Use safe automatic answers instead of prompting]' '{--ui-mode,-U}[Emit framed output for the Shelly UI]' '{--json,-j}[Output structured JSON where the command supports it]' ;;
            esac
            ;;
    esac
}
_shelly-beta "$@"
