#compdef zoi

autoload -U is-at-least

_zoi() {
    typeset -A opt_args
    typeset -a _arguments_options
    local ret=1

    if is-at-least 5.2; then
        _arguments_options=(-s -S -C)
    else
        _arguments_options=(-s -C)
    fi

    local context curcontext="$curcontext" state line
    _arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-v[Print detailed version information]' \
'--version[Print detailed version information]' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
":: :_zoi_commands" \
"*::: :->zoi" \
&& ret=0
    case $state in
    (zoi)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-command-$line[1]:"
        case $line[1] in
            (generate-completions)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
':shell -- The shell to generate completions for:(bash elvish fish powershell zsh)' \
&& ret=0
;;
(generate-manual)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(version)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(about)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(info)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(sync)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-v[Show the full git output]' \
'--verbose[Show the full git output]' \
'--fallback[Fallback to other mirrors if the default one fails]' \
'--no-pm[Do not check for installed package managers]' \
'-f[Download and index file lists for global search]' \
'--files[Download and index file lists for global search]' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_zoi__subcmd__sync_commands" \
"*::: :->sync" \
&& ret=0

    case $state in
    (sync)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-sync-command-$line[1]:"
        case $line[1] in
            (add)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
':url -- URL of the registry to add:_default' \
&& ret=0
;;
(remove)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
':handle -- Handle of the registry to remove:_default' \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(set)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
':url -- URL or keyword (default, github, gitlab, codeberg):_default' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_zoi__subcmd__sync__subcmd__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-sync-help-command-$line[1]:"
        case $line[1] in
            (add)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(remove)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(set)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(migrate)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
":: :_zoi__subcmd__migrate_commands" \
"*::: :->migrate" \
&& ret=0

    case $state in
    (migrate)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-migrate-command-$line[1]:"
        case $line[1] in
            (scoop)
_arguments "${_arguments_options[@]}" : \
'-o+[Output path for generated .pkg.lua (default\: <package-name>.pkg.lua)]:OUTPUT:_files' \
'--output=[Output path for generated .pkg.lua (default\: <package-name>.pkg.lua)]:OUTPUT:_files' \
'--repo=[Repository tier to set in metadata.repo]:REPO:_default' \
'--name=[Override package name (default\: from filename stem)]:NAME:_default' \
'--version=[Override version (default\: Scoop manifest version)]:VERSION:_default' \
'--maintainer-name=[Maintainer name in generated metadata]:MAINTAINER_NAME:_default' \
'--maintainer-email=[Maintainer email in generated metadata]:MAINTAINER_EMAIL:_default' \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'--dry-run[Print generated pkg.lua instead of writing a file]' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
':input -- Path to Scoop manifest JSON/JSON5 file:_files' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_zoi__subcmd__migrate__subcmd__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-migrate-help-command-$line[1]:"
        case $line[1] in
            (scoop)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(list)
_arguments "${_arguments_options[@]}" : \
'--registry=[Filter by registry handle (e.g. '\''zoidberg'\'')]:REGISTRY:_default' \
'--repo=[Filter by repository (e.g. '\''main'\'', '\''extra'\'')]:REPO:_default' \
'-t+[Filter by package type (package, app, collection, extension)]:PACKAGE_TYPE:_default' \
'--type=[Filter by package type (package, app, collection, extension)]:PACKAGE_TYPE:_default' \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-a[List all packages from the database, not just installed ones]' \
'--all[List all packages from the database, not just installed ones]' \
'-o[List only installed packages that have updates available]' \
'--outdated[List only installed packages that have updates available]' \
'-m[List packages not found in any configured registry]' \
'--foreign[List packages not found in any configured registry]' \
'--names[List only package names (internal use for completions)]' \
'--completion[List packages with descriptions for completion]' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(show)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'--raw[Display the raw, unformatted package file]' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
':package_name -- Package identifier (e.g. @repo/name, path, or URL):_default' \
&& ret=0
;;
(pin)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
':package -- Package identifier (e.g. @repo/name, path, or URL):_default' \
':version -- The version to pin the package to:_default' \
&& ret=0
;;
(provides)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
':term -- The command or file path to search for:_default' \
&& ret=0
;;
(tree)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
'*::packages -- Package identifier (e.g. @repo/name, path, or URL):_default' \
&& ret=0
;;
(unpin)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
':package -- Package identifier (e.g. @repo/name, path, or URL):_default' \
&& ret=0
;;
(mark)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'--as-dependency[Mark packages as dependencies]' \
'(--as-dependency)--as-explicit[Mark packages as explicitly installed]' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'*::packages -- Package identifier (e.g. @repo/name, path, or URL):_default' \
&& ret=0
;;
(update)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'()--all[Update all installed packages]' \
'--dry-run[Do not actually perform the update, just show what would be done]' \
'--explain[Explain why each selected update is included or skipped]' \
'--plan-json[Emit machine-readable update plan JSON]' \
'--interactive[Interactively choose which upgradable packages to update (with --all)]' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
'*::package_names -- Package identifier (e.g. @repo/name, path, or URL):_default' \
&& ret=0
;;
(install)
_arguments "${_arguments_options[@]}" : \
'()--repo=[Install from a git repository (e.g. '\''Zillowe/Hello'\'', '\''gl\:Zillowe/Hello'\'')]:REPO:_default' \
'(--local --global)--scope=[The scope to install the package to]:SCOPE:(user system project)' \
'--type=[The type of package to build if building from source (e.g. '\''source'\'', '\''pre-compiled'\'')]:TYPE:_default' \
'--retry=[Retry failed downloads this many times (minimum 1)]:RETRY:_default' \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'--force[Force re-installation even if the package is already installed]' \
'--all-optional[Accept all optional dependencies]' \
'(--global)--local[Install packages to the current project (alias for --scope=project)]' \
'--global[Install packages globally for the current user (alias for --scope=user)]' \
'--save[Save the package to the project'\''s zoi.yaml]' \
'--dry-run[Do not actually perform the installation, just show what would be done]' \
'-b[Force building from source even if a pre-compiled archive is available in the registry]' \
'--build[Force building from source even if a pre-compiled archive is available in the registry]' \
'--frozen-lockfile[Enforce zoi.lock exactly (project install only, no lockfile updates)]' \
'--explain[Explain dependency selection and install decisions]' \
'--plan-json[Emit machine-readable install plan JSON]' \
'-v[Show additional install details (package origins, preflight info)]' \
'--verbose[Show additional install details (package origins, preflight info)]' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
'*::sources -- Package identifier (e.g. @repo/name, path, or URL):_files' \
&& ret=0
;;
(uninstall)
_arguments "${_arguments_options[@]}" : \
'(--local --global)--scope=[The scope to uninstall the package from]:SCOPE:(user system project)' \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'(--global)--local[Uninstall packages from the current project (alias for --scope=project)]' \
'--global[Uninstall packages globally for the current user (alias for --scope=user)]' \
'--save[Remove the package from the project'\''s zoi.yaml]' \
'-r[Recursively remove dependencies that are no longer needed]' \
'--recursive[Recursively remove dependencies that are no longer needed]' \
'--explain[Explain uninstall decisions (dependency impact and safety blocks)]' \
'--plan-json[Emit machine-readable uninstall plan JSON]' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'*::packages -- Package identifier (e.g. @repo/name, path, or URL):_default' \
&& ret=0
;;
(run)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::cmd_alias -- The alias of the command to execute:_default' \
'*::args -- Arguments to pass to the command:_default' \
&& ret=0
;;
(env)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::env_alias -- The alias of the environment to set up:_default' \
&& ret=0
;;
(dev)
_arguments "${_arguments_options[@]}" : \
'-r+[Command to run in the dev shell instead of an interactive shell]:RUN:_default' \
'--run=[Command to run in the dev shell instead of an interactive shell]:RUN:_default' \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(upgrade)
_arguments "${_arguments_options[@]}" : \
'--tag=[Upgrade to a specific git tag]:TAG:_default' \
'--branch=[Upgrade to the latest release of a specific branch (e.g. Prod, Pub)]:BRANCH:_default' \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'--force[Force a full download]' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(autoremove)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'--dry-run[Do not actually remove packages, just show what would be done]' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(why)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
':package_name -- Package identifier (e.g. @repo/name, path, or URL):_default' \
&& ret=0
;;
(owner)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
':path -- Path to the file:_files' \
&& ret=0
;;
(files)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
':package -- Package identifier (e.g. @repo/name, path, or URL):_default' \
&& ret=0
;;
(history)
_arguments "${_arguments_options[@]}" : \
'(--verify)--export=[Export audit history to a file (default format\: JSON array with chain fields)]:EXPORT:_files' \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'(--export)--verify[Verify audit log chain integrity instead of printing history entries]' \
'--ndjson[Export in newline-delimited JSON (ndjson) instead of a JSON array]' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(search)
_arguments "${_arguments_options[@]}" : \
'--registry=[Filter by registry handle (e.g. '\''zoidberg'\'')]:REGISTRY:_default' \
'--repo=[Filter by repository (e.g. '\''main'\'', '\''extra'\'')]:REPO:_default' \
'--type=[Filter by package type (package, app, collection, extension)]:PACKAGE_TYPE:_default' \
'*-t+[Filter by tags (any match). Multiple via comma or repeated -t]:TAGS:_default' \
'*--tag=[Filter by tags (any match). Multiple via comma or repeated -t]:TAGS:_default' \
'--sort=[Sort results by field (name, repo, type)]:SORT:_default' \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-f[Search for files provided by packages instead of package names]' \
'--files[Search for files provided by packages instead of package names]' \
'-i[Open results in an interactive TUI]' \
'--interactive[Open results in an interactive TUI]' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':search_term -- The term to search for (e.g. '\''editor'\'', '\''cli'\''):_default' \
&& ret=0
;;
(service)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
":: :_zoi__subcmd__service_commands" \
"*::: :->service" \
&& ret=0

    case $state in
    (service)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-service-command-$line[1]:"
        case $line[1] in
            (start)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
':package -- The name of the package whose service to start:_default' \
&& ret=0
;;
(stop)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
':package -- The name of the package whose service to stop:_default' \
&& ret=0
;;
(restart)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
':package -- The name of the package whose service to restart:_default' \
&& ret=0
;;
(status)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
':package -- The name of the package whose service status to show:_default' \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_zoi__subcmd__service__subcmd__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-service-help-command-$line[1]:"
        case $line[1] in
            (start)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(stop)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(restart)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(status)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(shell)
_arguments "${_arguments_options[@]}" : \
'--scope=[The scope to apply the setup to (user or system-wide)]:SCOPE:(user system)' \
'*-p+[Packages to include in the ephemeral environment]:PACKAGE:_default' \
'*--package=[Packages to include in the ephemeral environment]:PACKAGE:_default' \
'-r+[Command to run in the ephemeral environment instead of an interactive shell]:RUN:_default' \
'--run=[Command to run in the ephemeral environment instead of an interactive shell]:RUN:_default' \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::shell -- The shell to set up completions for:(bash elvish fish powershell zsh)' \
&& ret=0
;;
(exec)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'--upstream[Force execution from a fresh download, bypassing any cache]' \
'--cache[Force execution from the cache, failing if the package is not cached]' \
'--local[Force execution from the local project installation]' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':source -- Package identifier (e.g. @repo/name, path, or URL):_files' \
'*::args -- Arguments to pass to the executed command:_default' \
&& ret=0
;;
(clean)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'--dry-run[Do not actually clear the cache, just show what would be done]' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(cache)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
":: :_zoi__subcmd__cache_commands" \
"*::: :->cache" \
&& ret=0

    case $state in
    (cache)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-cache-command-$line[1]:"
        case $line[1] in
            (add)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
'*::files -- Path to the .pkg.tar.zst archive(s):_files' \
&& ret=0
;;
(clear)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'--dry-run[Do not actually clear the cache, just show what would be done]' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(mirror)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
":: :_zoi__subcmd__cache__subcmd__mirror_commands" \
"*::: :->mirror" \
&& ret=0

    case $state in
    (mirror)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-cache-mirror-command-$line[1]:"
        case $line[1] in
            (add)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
':url -- Mirror base URL:_default' \
&& ret=0
;;
(remove)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
':url -- Mirror base URL:_default' \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_zoi__subcmd__cache__subcmd__mirror__subcmd__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-cache-mirror-help-command-$line[1]:"
        case $line[1] in
            (add)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(remove)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_zoi__subcmd__cache__subcmd__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-cache-help-command-$line[1]:"
        case $line[1] in
            (add)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(clear)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(mirror)
_arguments "${_arguments_options[@]}" : \
":: :_zoi__subcmd__cache__subcmd__help__subcmd__mirror_commands" \
"*::: :->mirror" \
&& ret=0

    case $state in
    (mirror)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-cache-help-mirror-command-$line[1]:"
        case $line[1] in
            (add)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(remove)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(transaction)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
":: :_zoi__subcmd__transaction_commands" \
"*::: :->transaction" \
&& ret=0

    case $state in
    (transaction)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-transaction-command-$line[1]:"
        case $line[1] in
            (list)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(show)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
':id -- Transaction ID:_default' \
&& ret=0
;;
(files)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
':id -- Transaction ID:_default' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_zoi__subcmd__transaction__subcmd__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-transaction-help-command-$line[1]:"
        case $line[1] in
            (list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(show)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(files)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(repo)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_zoi__subcmd__repo_commands" \
"*::: :->repo" \
&& ret=0

    case $state in
    (repo)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-repo-command-$line[1]:"
        case $line[1] in
            (add)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
'::repo_or_url -- The name of the repository to add or a git URL to clone:_default' \
&& ret=0
;;
(remove)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
':repo_name:_default' \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
":: :_zoi__subcmd__repo__subcmd__list_commands" \
"*::: :->list" \
&& ret=0

    case $state in
    (list)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-repo-list-command-$line[1]:"
        case $line[1] in
            (all)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_zoi__subcmd__repo__subcmd__list__subcmd__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-repo-list-help-command-$line[1]:"
        case $line[1] in
            (all)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(git)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
":: :_zoi__subcmd__repo__subcmd__git_commands" \
"*::: :->git" \
&& ret=0

    case $state in
    (git)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-repo-git-command-$line[1]:"
        case $line[1] in
            (list)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(rm)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
':repo_name:_default' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_zoi__subcmd__repo__subcmd__git__subcmd__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-repo-git-help-command-$line[1]:"
        case $line[1] in
            (list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(rm)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_zoi__subcmd__repo__subcmd__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-repo-help-command-$line[1]:"
        case $line[1] in
            (add)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(remove)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" : \
":: :_zoi__subcmd__repo__subcmd__help__subcmd__list_commands" \
"*::: :->list" \
&& ret=0

    case $state in
    (list)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-repo-help-list-command-$line[1]:"
        case $line[1] in
            (all)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(git)
_arguments "${_arguments_options[@]}" : \
":: :_zoi__subcmd__repo__subcmd__help__subcmd__git_commands" \
"*::: :->git" \
&& ret=0

    case $state in
    (git)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-repo-help-git-command-$line[1]:"
        case $line[1] in
            (list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(rm)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(telemetry)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':action:(status enable disable)' \
&& ret=0
;;
(create)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
':source -- Package identifier (e.g. @repo/name, path, or URL):_default' \
'::app_name -- The application name to substitute into template commands:_default' \
&& ret=0
;;
(downgrade)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':package -- Package identifier (e.g. @repo/name, path, or URL):_default' \
&& ret=0
;;
(extension)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
":: :_zoi__subcmd__extension_commands" \
"*::: :->extension" \
&& ret=0

    case $state in
    (extension)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-extension-command-$line[1]:"
        case $line[1] in
            (add)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
':name -- The name of the extension to add:_default' \
&& ret=0
;;
(remove)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
':name -- The name of the extension to remove:_default' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_zoi__subcmd__extension__subcmd__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-extension-help-command-$line[1]:"
        case $line[1] in
            (add)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(remove)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(system)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
":: :_zoi__subcmd__system_commands" \
"*::: :->system" \
&& ret=0

    case $state in
    (system)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-system-command-$line[1]:"
        case $line[1] in
            (apply)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(encrypt)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
':phrase -- The phrase to encrypt:_default' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_zoi__subcmd__system__subcmd__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-system-help-command-$line[1]:"
        case $line[1] in
            (apply)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(encrypt)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(rollback)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'()--last-transaction[Rollback the last transaction]' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
'::package -- Package identifier (e.g. @repo/name, path, or URL):_default' \
&& ret=0
;;
(man)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'--upstream[Always look at the upstream manual even if it'\''s downloaded]' \
'--raw[Print the manual to the terminal raw]' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
':package_name -- Package identifier (e.g. @repo/name, path, or URL):_default' \
&& ret=0
;;
(package)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
":: :_zoi__subcmd__package_commands" \
"*::: :->package" \
&& ret=0

    case $state in
    (package)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-package-command-$line[1]:"
        case $line[1] in
            (build)
_arguments "${_arguments_options[@]}" : \
'--type=[The type of package to build (e.g. '\''source'\'', '\''pre-compiled'\'')]:TYPE:_default' \
'*-p+[The platform to build for (e.g. '\''linux-amd64'\'', '\''windows-arm64'\'', '\''all'\'', '\''current'\''). Can be specified multiple times]:PLATFORM:_default' \
'*--platform=[The platform to build for (e.g. '\''linux-amd64'\'', '\''windows-arm64'\'', '\''all'\'', '\''current'\''). Can be specified multiple times]:PLATFORM:_default' \
'*--sub=[The sub-packages to build]:SUB:_default' \
'--sign=[Sign the package with the given PGP key (name or fingerprint)]:SIGN:_default' \
'-o+[Directory to output the built package to]:OUTPUT_DIR:_files' \
'--output-dir=[Directory to output the built package to]:OUTPUT_DIR:_files' \
'--version-override=[Override the package version]:VERSION_OVERRIDE:_default' \
'--method=[Method to use for building ('\''native'\'' or '\''docker'\'')]:METHOD:_default' \
'--image=[Docker image to use when method is '\''docker'\'']:IMAGE:_default' \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'--test[Run tests before building]' \
'--install-deps[Automatically install build-time dependencies]' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
':package_file -- Path to the package file (e.g. path/to/name.pkg.lua):_files' \
&& ret=0
;;
(test)
_arguments "${_arguments_options[@]}" : \
'--type=[The type of package to build (e.g. '\''source'\'', '\''pre-compiled'\'')]:TYPE:_default' \
'*-p+[The platform to build for (e.g. '\''linux-amd64'\'', '\''windows-arm64'\'', '\''all'\'', '\''current'\''). Can be specified multiple times]:PLATFORM:_default' \
'*--platform=[The platform to build for (e.g. '\''linux-amd64'\'', '\''windows-arm64'\'', '\''all'\'', '\''current'\''). Can be specified multiple times]:PLATFORM:_default' \
'*--sub=[The sub-packages to build]:SUB:_default' \
'--sign=[Sign the package with the given PGP key (name or fingerprint)]:SIGN:_default' \
'-o+[Directory to output the built package to]:OUTPUT_DIR:_files' \
'--output-dir=[Directory to output the built package to]:OUTPUT_DIR:_files' \
'--version-override=[Override the package version]:VERSION_OVERRIDE:_default' \
'--method=[Method to use for building ('\''native'\'' or '\''docker'\'')]:METHOD:_default' \
'--image=[Docker image to use when method is '\''docker'\'']:IMAGE:_default' \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'--test[Run tests before building]' \
'--install-deps[Automatically install build-time dependencies]' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
':package_file -- Path to the package file (e.g. path/to/name.pkg.lua):_files' \
&& ret=0
;;
(install)
_arguments "${_arguments_options[@]}" : \
'*-s+[The sub-packages to install from the archive]:SUB:_default' \
'*--sub=[The sub-packages to install from the archive]:SUB:_default' \
'--scope=[The scope to install the package to (user or system-wide)]:SCOPE:(user system)' \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
':package_file -- Path to the package archive file (e.g. path/to/name-os-arch.pkg.tar.zst):_files' \
&& ret=0
;;
(doctor)
_arguments "${_arguments_options[@]}" : \
'--platform=[Validate as this target platform (defaults to current platform)]:PLATFORM:_default' \
'--version-override=[Override package version while validating]:VERSION_OVERRIDE:_default' \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
':package_file -- Path to the package file (e.g. path/to/name.pkg.lua):_files' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_zoi__subcmd__package__subcmd__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-package-help-command-$line[1]:"
        case $line[1] in
            (build)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(test)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(install)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(doctor)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(pgp)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
":: :_zoi__subcmd__pgp_commands" \
"*::: :->pgp" \
&& ret=0

    case $state in
    (pgp)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-pgp-command-$line[1]:"
        case $line[1] in
            (add)
_arguments "${_arguments_options[@]}" : \
'--path=[Path to the PGP key file (.asc)]:PATH:_default' \
'--fingerprint=[Fingerprint of the PGP key to fetch from keys.openpgp.org]:FINGERPRINT:_default' \
'--url=[URL of the PGP key to import]:URL:_default' \
'--name=[Name to associate with the key (defaults to filename if adding from path/url)]:NAME:_default' \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(remove)
_arguments "${_arguments_options[@]}" : \
'--fingerprint=[Fingerprint of the key to remove]:FINGERPRINT:_default' \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
'::name -- Name of the key to remove:_default' \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(search)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
':term -- The user ID (name, email) or fingerprint to search for:_default' \
&& ret=0
;;
(show)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
':name -- The name of the key to show:_default' \
&& ret=0
;;
(verify)
_arguments "${_arguments_options[@]}" : \
'--file=[Path to the file to verify]:FILE:_default' \
'--sig=[Path to the detached signature file]:SIG:_default' \
'--key=[Name of the key in the local store to use for verification]:KEY:_default' \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_zoi__subcmd__pgp__subcmd__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-pgp-help-command-$line[1]:"
        case $line[1] in
            (add)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(remove)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(search)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(show)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(verify)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(helper)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
":: :_zoi__subcmd__helper_commands" \
"*::: :->helper" \
&& ret=0

    case $state in
    (helper)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-helper-command-$line[1]:"
        case $line[1] in
            (get-hash)
_arguments "${_arguments_options[@]}" : \
'--hash=[The hash algorithm to use]:HASH:(sha512 sha256)' \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
':source -- The local file path or URL to hash:_default' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_zoi__subcmd__helper__subcmd__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-helper-help-command-$line[1]:"
        case $line[1] in
            (get-hash)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(doctor)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(audit)
_arguments "${_arguments_options[@]}" : \
'--registry=[Filter by registry handle]:REGISTRY:_default' \
'--repo=[Filter by repository]:REPO:_default' \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .pkg.tar.zst archives]:PKG_DIRS:_files -/' \
'-a[Show all vulnerabilities from the database, not just for installed packages]' \
'--all[Show all vulnerabilities from the database, not just for installed packages]' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_zoi__subcmd__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-help-command-$line[1]:"
        case $line[1] in
            (generate-completions)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(generate-manual)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(version)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(about)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(info)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(sync)
_arguments "${_arguments_options[@]}" : \
":: :_zoi__subcmd__help__subcmd__sync_commands" \
"*::: :->sync" \
&& ret=0

    case $state in
    (sync)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-help-sync-command-$line[1]:"
        case $line[1] in
            (add)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(remove)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(set)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(migrate)
_arguments "${_arguments_options[@]}" : \
":: :_zoi__subcmd__help__subcmd__migrate_commands" \
"*::: :->migrate" \
&& ret=0

    case $state in
    (migrate)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-help-migrate-command-$line[1]:"
        case $line[1] in
            (scoop)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(show)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(pin)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(provides)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(tree)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(unpin)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(mark)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(update)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(install)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(uninstall)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(run)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(env)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(dev)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(upgrade)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(autoremove)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(why)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(owner)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(files)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(history)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(search)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(service)
_arguments "${_arguments_options[@]}" : \
":: :_zoi__subcmd__help__subcmd__service_commands" \
"*::: :->service" \
&& ret=0

    case $state in
    (service)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-help-service-command-$line[1]:"
        case $line[1] in
            (start)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(stop)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(restart)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(status)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(shell)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(exec)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(clean)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(cache)
_arguments "${_arguments_options[@]}" : \
":: :_zoi__subcmd__help__subcmd__cache_commands" \
"*::: :->cache" \
&& ret=0

    case $state in
    (cache)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-help-cache-command-$line[1]:"
        case $line[1] in
            (add)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(clear)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(mirror)
_arguments "${_arguments_options[@]}" : \
":: :_zoi__subcmd__help__subcmd__cache__subcmd__mirror_commands" \
"*::: :->mirror" \
&& ret=0

    case $state in
    (mirror)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-help-cache-mirror-command-$line[1]:"
        case $line[1] in
            (add)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(remove)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(transaction)
_arguments "${_arguments_options[@]}" : \
":: :_zoi__subcmd__help__subcmd__transaction_commands" \
"*::: :->transaction" \
&& ret=0

    case $state in
    (transaction)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-help-transaction-command-$line[1]:"
        case $line[1] in
            (list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(show)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(files)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(repo)
_arguments "${_arguments_options[@]}" : \
":: :_zoi__subcmd__help__subcmd__repo_commands" \
"*::: :->repo" \
&& ret=0

    case $state in
    (repo)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-help-repo-command-$line[1]:"
        case $line[1] in
            (add)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(remove)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" : \
":: :_zoi__subcmd__help__subcmd__repo__subcmd__list_commands" \
"*::: :->list" \
&& ret=0

    case $state in
    (list)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-help-repo-list-command-$line[1]:"
        case $line[1] in
            (all)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(git)
_arguments "${_arguments_options[@]}" : \
":: :_zoi__subcmd__help__subcmd__repo__subcmd__git_commands" \
"*::: :->git" \
&& ret=0

    case $state in
    (git)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-help-repo-git-command-$line[1]:"
        case $line[1] in
            (list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(rm)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(telemetry)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(create)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(downgrade)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(extension)
_arguments "${_arguments_options[@]}" : \
":: :_zoi__subcmd__help__subcmd__extension_commands" \
"*::: :->extension" \
&& ret=0

    case $state in
    (extension)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-help-extension-command-$line[1]:"
        case $line[1] in
            (add)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(remove)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(system)
_arguments "${_arguments_options[@]}" : \
":: :_zoi__subcmd__help__subcmd__system_commands" \
"*::: :->system" \
&& ret=0

    case $state in
    (system)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-help-system-command-$line[1]:"
        case $line[1] in
            (apply)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(encrypt)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(rollback)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(man)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(package)
_arguments "${_arguments_options[@]}" : \
":: :_zoi__subcmd__help__subcmd__package_commands" \
"*::: :->package" \
&& ret=0

    case $state in
    (package)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-help-package-command-$line[1]:"
        case $line[1] in
            (build)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(test)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(install)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(doctor)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(pgp)
_arguments "${_arguments_options[@]}" : \
":: :_zoi__subcmd__help__subcmd__pgp_commands" \
"*::: :->pgp" \
&& ret=0

    case $state in
    (pgp)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-help-pgp-command-$line[1]:"
        case $line[1] in
            (add)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(remove)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(search)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(show)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(verify)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(helper)
_arguments "${_arguments_options[@]}" : \
":: :_zoi__subcmd__help__subcmd__helper_commands" \
"*::: :->helper" \
&& ret=0

    case $state in
    (helper)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-help-helper-command-$line[1]:"
        case $line[1] in
            (get-hash)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(doctor)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(audit)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
}

(( $+functions[_zoi_commands] )) ||
_zoi_commands() {
    local commands; commands=(
'generate-completions:Generates shell completion scripts' \
'generate-manual:Generates man pages for zoi' \
'version:Prints concise version and build information' \
'about:Shows detailed application information and credits' \
'info:Displays detected operating system and architecture information' \
'sync:Downloads or updates the package database from the remote repository' \
'migrate:Migration helpers for converting external manifests to Zoi package files' \
'list:Lists installed or all available packages' \
'show:Shows detailed information about a package' \
'pin:Pin a package to a specific version' \
'provides:Find which package provides a specific command or file' \
'tree:Visualize the dependency tree of a package' \
'unpin:Unpin a package, allowing it to be updated' \
'mark:Modify the installation reason of a package' \
'update:Updates one or more packages to their latest versions' \
'install:Installs one or more packages from a name, local file, URL, or git repository' \
'uninstall:Uninstalls one or more packages previously installed by Zoi' \
'run:Execute a command defined in a local zoi.yaml file' \
'env:Manage and set up project environments from a local zoi.yaml file' \
'dev:Enter a development shell for the current project' \
'upgrade:Upgrades the Zoi binary to the latest version' \
'autoremove:Removes packages that were installed as dependencies but are no longer needed' \
'why:Explains why a package is installed' \
'owner:Find which package owns a file' \
'files:List all files owned by a package' \
'history:Shows the history of package operations' \
'search:Searches for packages by name or description' \
'service:Manage background services for installed packages' \
'shell:Set up shell completions or enter an ephemeral environment with specific packages' \
'exec:Download and execute a binary package without installing it' \
'clean:Clears the cache of downloaded package binaries' \
'cache:Manage Zoi'\''s local cache' \
'transaction:Inspect recorded transactions' \
'repo:Manage package repositories' \
'telemetry:Manage telemetry settings (opt-in analytics)' \
'create:Create an application using a package template' \
'downgrade:Downgrade a package to a specific version from local cache or store' \
'extension:Manage Zoi extensions' \
'system:Manage declarative system configuration (Arch Linux only)' \
'rollback:Rollback a package to the previously installed version' \
'man:Shows a package'\''s manual' \
'package:Build, create, and manage Zoi packages' \
'pgp:Manage PGP keys for package signature verification' \
'helper:Helper commands for various tasks' \
'doctor:Checks for common issues and provides actionable suggestions' \
'audit:Audit installed or all packages for security vulnerabilities' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'zoi commands' commands "$@"
}
(( $+functions[_zoi__subcmd__about_commands] )) ||
_zoi__subcmd__about_commands() {
    local commands; commands=()
    _describe -t commands 'zoi about commands' commands "$@"
}
(( $+functions[_zoi__subcmd__audit_commands] )) ||
_zoi__subcmd__audit_commands() {
    local commands; commands=()
    _describe -t commands 'zoi audit commands' commands "$@"
}
(( $+functions[_zoi__subcmd__autoremove_commands] )) ||
_zoi__subcmd__autoremove_commands() {
    local commands; commands=()
    _describe -t commands 'zoi autoremove commands' commands "$@"
}
(( $+functions[_zoi__subcmd__cache_commands] )) ||
_zoi__subcmd__cache_commands() {
    local commands; commands=(
'add:Add package archive(s) to the local cache' \
'clear:Clear the local cache' \
'list:List all archives currently in the cache' \
'mirror:Manage cache mirrors used for archive downloads' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'zoi cache commands' commands "$@"
}
(( $+functions[_zoi__subcmd__cache__subcmd__add_commands] )) ||
_zoi__subcmd__cache__subcmd__add_commands() {
    local commands; commands=()
    _describe -t commands 'zoi cache add commands' commands "$@"
}
(( $+functions[_zoi__subcmd__cache__subcmd__clear_commands] )) ||
_zoi__subcmd__cache__subcmd__clear_commands() {
    local commands; commands=()
    _describe -t commands 'zoi cache clear commands' commands "$@"
}
(( $+functions[_zoi__subcmd__cache__subcmd__help_commands] )) ||
_zoi__subcmd__cache__subcmd__help_commands() {
    local commands; commands=(
'add:Add package archive(s) to the local cache' \
'clear:Clear the local cache' \
'list:List all archives currently in the cache' \
'mirror:Manage cache mirrors used for archive downloads' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'zoi cache help commands' commands "$@"
}
(( $+functions[_zoi__subcmd__cache__subcmd__help__subcmd__add_commands] )) ||
_zoi__subcmd__cache__subcmd__help__subcmd__add_commands() {
    local commands; commands=()
    _describe -t commands 'zoi cache help add commands' commands "$@"
}
(( $+functions[_zoi__subcmd__cache__subcmd__help__subcmd__clear_commands] )) ||
_zoi__subcmd__cache__subcmd__help__subcmd__clear_commands() {
    local commands; commands=()
    _describe -t commands 'zoi cache help clear commands' commands "$@"
}
(( $+functions[_zoi__subcmd__cache__subcmd__help__subcmd__help_commands] )) ||
_zoi__subcmd__cache__subcmd__help__subcmd__help_commands() {
    local commands; commands=()
    _describe -t commands 'zoi cache help help commands' commands "$@"
}
(( $+functions[_zoi__subcmd__cache__subcmd__help__subcmd__list_commands] )) ||
_zoi__subcmd__cache__subcmd__help__subcmd__list_commands() {
    local commands; commands=()
    _describe -t commands 'zoi cache help list commands' commands "$@"
}
(( $+functions[_zoi__subcmd__cache__subcmd__help__subcmd__mirror_commands] )) ||
_zoi__subcmd__cache__subcmd__help__subcmd__mirror_commands() {
    local commands; commands=(
'add:Add a cache mirror base URL' \
'remove:Remove a cache mirror base URL' \
'list:List configured cache mirrors' \
    )
    _describe -t commands 'zoi cache help mirror commands' commands "$@"
}
(( $+functions[_zoi__subcmd__cache__subcmd__help__subcmd__mirror__subcmd__add_commands] )) ||
_zoi__subcmd__cache__subcmd__help__subcmd__mirror__subcmd__add_commands() {
    local commands; commands=()
    _describe -t commands 'zoi cache help mirror add commands' commands "$@"
}
(( $+functions[_zoi__subcmd__cache__subcmd__help__subcmd__mirror__subcmd__list_commands] )) ||
_zoi__subcmd__cache__subcmd__help__subcmd__mirror__subcmd__list_commands() {
    local commands; commands=()
    _describe -t commands 'zoi cache help mirror list commands' commands "$@"
}
(( $+functions[_zoi__subcmd__cache__subcmd__help__subcmd__mirror__subcmd__remove_commands] )) ||
_zoi__subcmd__cache__subcmd__help__subcmd__mirror__subcmd__remove_commands() {
    local commands; commands=()
    _describe -t commands 'zoi cache help mirror remove commands' commands "$@"
}
(( $+functions[_zoi__subcmd__cache__subcmd__list_commands] )) ||
_zoi__subcmd__cache__subcmd__list_commands() {
    local commands; commands=()
    _describe -t commands 'zoi cache list commands' commands "$@"
}
(( $+functions[_zoi__subcmd__cache__subcmd__mirror_commands] )) ||
_zoi__subcmd__cache__subcmd__mirror_commands() {
    local commands; commands=(
'add:Add a cache mirror base URL' \
'remove:Remove a cache mirror base URL' \
'list:List configured cache mirrors' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'zoi cache mirror commands' commands "$@"
}
(( $+functions[_zoi__subcmd__cache__subcmd__mirror__subcmd__add_commands] )) ||
_zoi__subcmd__cache__subcmd__mirror__subcmd__add_commands() {
    local commands; commands=()
    _describe -t commands 'zoi cache mirror add commands' commands "$@"
}
(( $+functions[_zoi__subcmd__cache__subcmd__mirror__subcmd__help_commands] )) ||
_zoi__subcmd__cache__subcmd__mirror__subcmd__help_commands() {
    local commands; commands=(
'add:Add a cache mirror base URL' \
'remove:Remove a cache mirror base URL' \
'list:List configured cache mirrors' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'zoi cache mirror help commands' commands "$@"
}
(( $+functions[_zoi__subcmd__cache__subcmd__mirror__subcmd__help__subcmd__add_commands] )) ||
_zoi__subcmd__cache__subcmd__mirror__subcmd__help__subcmd__add_commands() {
    local commands; commands=()
    _describe -t commands 'zoi cache mirror help add commands' commands "$@"
}
(( $+functions[_zoi__subcmd__cache__subcmd__mirror__subcmd__help__subcmd__help_commands] )) ||
_zoi__subcmd__cache__subcmd__mirror__subcmd__help__subcmd__help_commands() {
    local commands; commands=()
    _describe -t commands 'zoi cache mirror help help commands' commands "$@"
}
(( $+functions[_zoi__subcmd__cache__subcmd__mirror__subcmd__help__subcmd__list_commands] )) ||
_zoi__subcmd__cache__subcmd__mirror__subcmd__help__subcmd__list_commands() {
    local commands; commands=()
    _describe -t commands 'zoi cache mirror help list commands' commands "$@"
}
(( $+functions[_zoi__subcmd__cache__subcmd__mirror__subcmd__help__subcmd__remove_commands] )) ||
_zoi__subcmd__cache__subcmd__mirror__subcmd__help__subcmd__remove_commands() {
    local commands; commands=()
    _describe -t commands 'zoi cache mirror help remove commands' commands "$@"
}
(( $+functions[_zoi__subcmd__cache__subcmd__mirror__subcmd__list_commands] )) ||
_zoi__subcmd__cache__subcmd__mirror__subcmd__list_commands() {
    local commands; commands=()
    _describe -t commands 'zoi cache mirror list commands' commands "$@"
}
(( $+functions[_zoi__subcmd__cache__subcmd__mirror__subcmd__remove_commands] )) ||
_zoi__subcmd__cache__subcmd__mirror__subcmd__remove_commands() {
    local commands; commands=()
    _describe -t commands 'zoi cache mirror remove commands' commands "$@"
}
(( $+functions[_zoi__subcmd__clean_commands] )) ||
_zoi__subcmd__clean_commands() {
    local commands; commands=()
    _describe -t commands 'zoi clean commands' commands "$@"
}
(( $+functions[_zoi__subcmd__create_commands] )) ||
_zoi__subcmd__create_commands() {
    local commands; commands=()
    _describe -t commands 'zoi create commands' commands "$@"
}
(( $+functions[_zoi__subcmd__dev_commands] )) ||
_zoi__subcmd__dev_commands() {
    local commands; commands=()
    _describe -t commands 'zoi dev commands' commands "$@"
}
(( $+functions[_zoi__subcmd__doctor_commands] )) ||
_zoi__subcmd__doctor_commands() {
    local commands; commands=()
    _describe -t commands 'zoi doctor commands' commands "$@"
}
(( $+functions[_zoi__subcmd__downgrade_commands] )) ||
_zoi__subcmd__downgrade_commands() {
    local commands; commands=()
    _describe -t commands 'zoi downgrade commands' commands "$@"
}
(( $+functions[_zoi__subcmd__env_commands] )) ||
_zoi__subcmd__env_commands() {
    local commands; commands=()
    _describe -t commands 'zoi env commands' commands "$@"
}
(( $+functions[_zoi__subcmd__exec_commands] )) ||
_zoi__subcmd__exec_commands() {
    local commands; commands=()
    _describe -t commands 'zoi exec commands' commands "$@"
}
(( $+functions[_zoi__subcmd__extension_commands] )) ||
_zoi__subcmd__extension_commands() {
    local commands; commands=(
'add:Add an extension' \
'remove:Remove an extension' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'zoi extension commands' commands "$@"
}
(( $+functions[_zoi__subcmd__extension__subcmd__add_commands] )) ||
_zoi__subcmd__extension__subcmd__add_commands() {
    local commands; commands=()
    _describe -t commands 'zoi extension add commands' commands "$@"
}
(( $+functions[_zoi__subcmd__extension__subcmd__help_commands] )) ||
_zoi__subcmd__extension__subcmd__help_commands() {
    local commands; commands=(
'add:Add an extension' \
'remove:Remove an extension' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'zoi extension help commands' commands "$@"
}
(( $+functions[_zoi__subcmd__extension__subcmd__help__subcmd__add_commands] )) ||
_zoi__subcmd__extension__subcmd__help__subcmd__add_commands() {
    local commands; commands=()
    _describe -t commands 'zoi extension help add commands' commands "$@"
}
(( $+functions[_zoi__subcmd__extension__subcmd__help__subcmd__help_commands] )) ||
_zoi__subcmd__extension__subcmd__help__subcmd__help_commands() {
    local commands; commands=()
    _describe -t commands 'zoi extension help help commands' commands "$@"
}
(( $+functions[_zoi__subcmd__extension__subcmd__help__subcmd__remove_commands] )) ||
_zoi__subcmd__extension__subcmd__help__subcmd__remove_commands() {
    local commands; commands=()
    _describe -t commands 'zoi extension help remove commands' commands "$@"
}
(( $+functions[_zoi__subcmd__extension__subcmd__remove_commands] )) ||
_zoi__subcmd__extension__subcmd__remove_commands() {
    local commands; commands=()
    _describe -t commands 'zoi extension remove commands' commands "$@"
}
(( $+functions[_zoi__subcmd__files_commands] )) ||
_zoi__subcmd__files_commands() {
    local commands; commands=()
    _describe -t commands 'zoi files commands' commands "$@"
}
(( $+functions[_zoi__subcmd__generate-completions_commands] )) ||
_zoi__subcmd__generate-completions_commands() {
    local commands; commands=()
    _describe -t commands 'zoi generate-completions commands' commands "$@"
}
(( $+functions[_zoi__subcmd__generate-manual_commands] )) ||
_zoi__subcmd__generate-manual_commands() {
    local commands; commands=()
    _describe -t commands 'zoi generate-manual commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help_commands] )) ||
_zoi__subcmd__help_commands() {
    local commands; commands=(
'generate-completions:Generates shell completion scripts' \
'generate-manual:Generates man pages for zoi' \
'version:Prints concise version and build information' \
'about:Shows detailed application information and credits' \
'info:Displays detected operating system and architecture information' \
'sync:Downloads or updates the package database from the remote repository' \
'migrate:Migration helpers for converting external manifests to Zoi package files' \
'list:Lists installed or all available packages' \
'show:Shows detailed information about a package' \
'pin:Pin a package to a specific version' \
'provides:Find which package provides a specific command or file' \
'tree:Visualize the dependency tree of a package' \
'unpin:Unpin a package, allowing it to be updated' \
'mark:Modify the installation reason of a package' \
'update:Updates one or more packages to their latest versions' \
'install:Installs one or more packages from a name, local file, URL, or git repository' \
'uninstall:Uninstalls one or more packages previously installed by Zoi' \
'run:Execute a command defined in a local zoi.yaml file' \
'env:Manage and set up project environments from a local zoi.yaml file' \
'dev:Enter a development shell for the current project' \
'upgrade:Upgrades the Zoi binary to the latest version' \
'autoremove:Removes packages that were installed as dependencies but are no longer needed' \
'why:Explains why a package is installed' \
'owner:Find which package owns a file' \
'files:List all files owned by a package' \
'history:Shows the history of package operations' \
'search:Searches for packages by name or description' \
'service:Manage background services for installed packages' \
'shell:Set up shell completions or enter an ephemeral environment with specific packages' \
'exec:Download and execute a binary package without installing it' \
'clean:Clears the cache of downloaded package binaries' \
'cache:Manage Zoi'\''s local cache' \
'transaction:Inspect recorded transactions' \
'repo:Manage package repositories' \
'telemetry:Manage telemetry settings (opt-in analytics)' \
'create:Create an application using a package template' \
'downgrade:Downgrade a package to a specific version from local cache or store' \
'extension:Manage Zoi extensions' \
'system:Manage declarative system configuration (Arch Linux only)' \
'rollback:Rollback a package to the previously installed version' \
'man:Shows a package'\''s manual' \
'package:Build, create, and manage Zoi packages' \
'pgp:Manage PGP keys for package signature verification' \
'helper:Helper commands for various tasks' \
'doctor:Checks for common issues and provides actionable suggestions' \
'audit:Audit installed or all packages for security vulnerabilities' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'zoi help commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__about_commands] )) ||
_zoi__subcmd__help__subcmd__about_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help about commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__audit_commands] )) ||
_zoi__subcmd__help__subcmd__audit_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help audit commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__autoremove_commands] )) ||
_zoi__subcmd__help__subcmd__autoremove_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help autoremove commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__cache_commands] )) ||
_zoi__subcmd__help__subcmd__cache_commands() {
    local commands; commands=(
'add:Add package archive(s) to the local cache' \
'clear:Clear the local cache' \
'list:List all archives currently in the cache' \
'mirror:Manage cache mirrors used for archive downloads' \
    )
    _describe -t commands 'zoi help cache commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__cache__subcmd__add_commands] )) ||
_zoi__subcmd__help__subcmd__cache__subcmd__add_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help cache add commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__cache__subcmd__clear_commands] )) ||
_zoi__subcmd__help__subcmd__cache__subcmd__clear_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help cache clear commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__cache__subcmd__list_commands] )) ||
_zoi__subcmd__help__subcmd__cache__subcmd__list_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help cache list commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__cache__subcmd__mirror_commands] )) ||
_zoi__subcmd__help__subcmd__cache__subcmd__mirror_commands() {
    local commands; commands=(
'add:Add a cache mirror base URL' \
'remove:Remove a cache mirror base URL' \
'list:List configured cache mirrors' \
    )
    _describe -t commands 'zoi help cache mirror commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__cache__subcmd__mirror__subcmd__add_commands] )) ||
_zoi__subcmd__help__subcmd__cache__subcmd__mirror__subcmd__add_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help cache mirror add commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__cache__subcmd__mirror__subcmd__list_commands] )) ||
_zoi__subcmd__help__subcmd__cache__subcmd__mirror__subcmd__list_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help cache mirror list commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__cache__subcmd__mirror__subcmd__remove_commands] )) ||
_zoi__subcmd__help__subcmd__cache__subcmd__mirror__subcmd__remove_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help cache mirror remove commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__clean_commands] )) ||
_zoi__subcmd__help__subcmd__clean_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help clean commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__create_commands] )) ||
_zoi__subcmd__help__subcmd__create_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help create commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__dev_commands] )) ||
_zoi__subcmd__help__subcmd__dev_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help dev commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__doctor_commands] )) ||
_zoi__subcmd__help__subcmd__doctor_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help doctor commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__downgrade_commands] )) ||
_zoi__subcmd__help__subcmd__downgrade_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help downgrade commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__env_commands] )) ||
_zoi__subcmd__help__subcmd__env_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help env commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__exec_commands] )) ||
_zoi__subcmd__help__subcmd__exec_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help exec commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__extension_commands] )) ||
_zoi__subcmd__help__subcmd__extension_commands() {
    local commands; commands=(
'add:Add an extension' \
'remove:Remove an extension' \
    )
    _describe -t commands 'zoi help extension commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__extension__subcmd__add_commands] )) ||
_zoi__subcmd__help__subcmd__extension__subcmd__add_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help extension add commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__extension__subcmd__remove_commands] )) ||
_zoi__subcmd__help__subcmd__extension__subcmd__remove_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help extension remove commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__files_commands] )) ||
_zoi__subcmd__help__subcmd__files_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help files commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__generate-completions_commands] )) ||
_zoi__subcmd__help__subcmd__generate-completions_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help generate-completions commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__generate-manual_commands] )) ||
_zoi__subcmd__help__subcmd__generate-manual_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help generate-manual commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__help_commands] )) ||
_zoi__subcmd__help__subcmd__help_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help help commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__helper_commands] )) ||
_zoi__subcmd__help__subcmd__helper_commands() {
    local commands; commands=(
'get-hash:Get a hash of a local file or a file from a URL' \
    )
    _describe -t commands 'zoi help helper commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__helper__subcmd__get-hash_commands] )) ||
_zoi__subcmd__help__subcmd__helper__subcmd__get-hash_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help helper get-hash commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__history_commands] )) ||
_zoi__subcmd__help__subcmd__history_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help history commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__info_commands] )) ||
_zoi__subcmd__help__subcmd__info_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help info commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__install_commands] )) ||
_zoi__subcmd__help__subcmd__install_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help install commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__list_commands] )) ||
_zoi__subcmd__help__subcmd__list_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help list commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__man_commands] )) ||
_zoi__subcmd__help__subcmd__man_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help man commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__mark_commands] )) ||
_zoi__subcmd__help__subcmd__mark_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help mark commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__migrate_commands] )) ||
_zoi__subcmd__help__subcmd__migrate_commands() {
    local commands; commands=(
'scoop:Convert a Scoop manifest (scoop.json) into a Zoi .pkg.lua package file' \
    )
    _describe -t commands 'zoi help migrate commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__migrate__subcmd__scoop_commands] )) ||
_zoi__subcmd__help__subcmd__migrate__subcmd__scoop_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help migrate scoop commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__owner_commands] )) ||
_zoi__subcmd__help__subcmd__owner_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help owner commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__package_commands] )) ||
_zoi__subcmd__help__subcmd__package_commands() {
    local commands; commands=(
'build:Build a package from a pkg.lua file' \
'test:Test a package from a pkg.lua file' \
'install:Install a package from a local archive' \
'doctor:Lint and validate a package definition for maintainers' \
    )
    _describe -t commands 'zoi help package commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__package__subcmd__build_commands] )) ||
_zoi__subcmd__help__subcmd__package__subcmd__build_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help package build commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__package__subcmd__doctor_commands] )) ||
_zoi__subcmd__help__subcmd__package__subcmd__doctor_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help package doctor commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__package__subcmd__install_commands] )) ||
_zoi__subcmd__help__subcmd__package__subcmd__install_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help package install commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__package__subcmd__test_commands] )) ||
_zoi__subcmd__help__subcmd__package__subcmd__test_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help package test commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__pgp_commands] )) ||
_zoi__subcmd__help__subcmd__pgp_commands() {
    local commands; commands=(
'add:Add a PGP key from a file, URL, or a keyserver' \
'remove:Remove a PGP key' \
'list:List all imported PGP keys' \
'search:Search for a PGP key by user ID or fingerprint' \
'show:Show the public key of a stored PGP key' \
'verify:Verify a file'\''s detached signature' \
    )
    _describe -t commands 'zoi help pgp commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__pgp__subcmd__add_commands] )) ||
_zoi__subcmd__help__subcmd__pgp__subcmd__add_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help pgp add commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__pgp__subcmd__list_commands] )) ||
_zoi__subcmd__help__subcmd__pgp__subcmd__list_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help pgp list commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__pgp__subcmd__remove_commands] )) ||
_zoi__subcmd__help__subcmd__pgp__subcmd__remove_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help pgp remove commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__pgp__subcmd__search_commands] )) ||
_zoi__subcmd__help__subcmd__pgp__subcmd__search_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help pgp search commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__pgp__subcmd__show_commands] )) ||
_zoi__subcmd__help__subcmd__pgp__subcmd__show_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help pgp show commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__pgp__subcmd__verify_commands] )) ||
_zoi__subcmd__help__subcmd__pgp__subcmd__verify_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help pgp verify commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__pin_commands] )) ||
_zoi__subcmd__help__subcmd__pin_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help pin commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__provides_commands] )) ||
_zoi__subcmd__help__subcmd__provides_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help provides commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__repo_commands] )) ||
_zoi__subcmd__help__subcmd__repo_commands() {
    local commands; commands=(
'add:Add a repository to the configuration or clone from a git URL' \
'remove:Remove a repository from the active configuration' \
'list:List repositories (active by default); use \`list all\` to show all' \
'git:Manage cloned git repositories' \
    )
    _describe -t commands 'zoi help repo commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__repo__subcmd__add_commands] )) ||
_zoi__subcmd__help__subcmd__repo__subcmd__add_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help repo add commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__repo__subcmd__git_commands] )) ||
_zoi__subcmd__help__subcmd__repo__subcmd__git_commands() {
    local commands; commands=(
'list:Show only cloned git repositories (~/.zoi/pkgs/git)' \
'rm:Remove a cloned git repository directory (~/.zoi/pkgs/git/<repo-name>)' \
    )
    _describe -t commands 'zoi help repo git commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__repo__subcmd__git__subcmd__list_commands] )) ||
_zoi__subcmd__help__subcmd__repo__subcmd__git__subcmd__list_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help repo git list commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__repo__subcmd__git__subcmd__rm_commands] )) ||
_zoi__subcmd__help__subcmd__repo__subcmd__git__subcmd__rm_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help repo git rm commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__repo__subcmd__list_commands] )) ||
_zoi__subcmd__help__subcmd__repo__subcmd__list_commands() {
    local commands; commands=(
'all:Show all available repositories (active + discovered)' \
    )
    _describe -t commands 'zoi help repo list commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__repo__subcmd__list__subcmd__all_commands] )) ||
_zoi__subcmd__help__subcmd__repo__subcmd__list__subcmd__all_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help repo list all commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__repo__subcmd__remove_commands] )) ||
_zoi__subcmd__help__subcmd__repo__subcmd__remove_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help repo remove commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__rollback_commands] )) ||
_zoi__subcmd__help__subcmd__rollback_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help rollback commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__run_commands] )) ||
_zoi__subcmd__help__subcmd__run_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help run commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__search_commands] )) ||
_zoi__subcmd__help__subcmd__search_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help search commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__service_commands] )) ||
_zoi__subcmd__help__subcmd__service_commands() {
    local commands; commands=(
'start:Start a service' \
'stop:Stop a service' \
'restart:Restart a service' \
'status:Show the status of a service' \
'list:List all packages that define a service and their current status' \
    )
    _describe -t commands 'zoi help service commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__service__subcmd__list_commands] )) ||
_zoi__subcmd__help__subcmd__service__subcmd__list_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help service list commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__service__subcmd__restart_commands] )) ||
_zoi__subcmd__help__subcmd__service__subcmd__restart_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help service restart commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__service__subcmd__start_commands] )) ||
_zoi__subcmd__help__subcmd__service__subcmd__start_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help service start commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__service__subcmd__status_commands] )) ||
_zoi__subcmd__help__subcmd__service__subcmd__status_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help service status commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__service__subcmd__stop_commands] )) ||
_zoi__subcmd__help__subcmd__service__subcmd__stop_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help service stop commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__shell_commands] )) ||
_zoi__subcmd__help__subcmd__shell_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help shell commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__show_commands] )) ||
_zoi__subcmd__help__subcmd__show_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help show commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__sync_commands] )) ||
_zoi__subcmd__help__subcmd__sync_commands() {
    local commands; commands=(
'add:Add a new registry' \
'remove:Remove a configured registry by its handle' \
'list:List configured registries' \
'set:Set the default registry URL' \
    )
    _describe -t commands 'zoi help sync commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__sync__subcmd__add_commands] )) ||
_zoi__subcmd__help__subcmd__sync__subcmd__add_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help sync add commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__sync__subcmd__list_commands] )) ||
_zoi__subcmd__help__subcmd__sync__subcmd__list_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help sync list commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__sync__subcmd__remove_commands] )) ||
_zoi__subcmd__help__subcmd__sync__subcmd__remove_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help sync remove commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__sync__subcmd__set_commands] )) ||
_zoi__subcmd__help__subcmd__sync__subcmd__set_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help sync set commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__system_commands] )) ||
_zoi__subcmd__help__subcmd__system_commands() {
    local commands; commands=(
'apply:Apply the declarative system configuration from /etc/zoi/zoi.lua' \
'encrypt:Encrypt a phrase (e.g. password) for use in zoi.lua' \
    )
    _describe -t commands 'zoi help system commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__system__subcmd__apply_commands] )) ||
_zoi__subcmd__help__subcmd__system__subcmd__apply_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help system apply commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__system__subcmd__encrypt_commands] )) ||
_zoi__subcmd__help__subcmd__system__subcmd__encrypt_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help system encrypt commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__telemetry_commands] )) ||
_zoi__subcmd__help__subcmd__telemetry_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help telemetry commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__transaction_commands] )) ||
_zoi__subcmd__help__subcmd__transaction_commands() {
    local commands; commands=(
'list:List known transaction logs' \
'show:Show details for a transaction' \
'files:List modified files for a transaction' \
    )
    _describe -t commands 'zoi help transaction commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__transaction__subcmd__files_commands] )) ||
_zoi__subcmd__help__subcmd__transaction__subcmd__files_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help transaction files commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__transaction__subcmd__list_commands] )) ||
_zoi__subcmd__help__subcmd__transaction__subcmd__list_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help transaction list commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__transaction__subcmd__show_commands] )) ||
_zoi__subcmd__help__subcmd__transaction__subcmd__show_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help transaction show commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__tree_commands] )) ||
_zoi__subcmd__help__subcmd__tree_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help tree commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__uninstall_commands] )) ||
_zoi__subcmd__help__subcmd__uninstall_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help uninstall commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__unpin_commands] )) ||
_zoi__subcmd__help__subcmd__unpin_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help unpin commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__update_commands] )) ||
_zoi__subcmd__help__subcmd__update_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help update commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__upgrade_commands] )) ||
_zoi__subcmd__help__subcmd__upgrade_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help upgrade commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__version_commands] )) ||
_zoi__subcmd__help__subcmd__version_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help version commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__why_commands] )) ||
_zoi__subcmd__help__subcmd__why_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help why commands' commands "$@"
}
(( $+functions[_zoi__subcmd__helper_commands] )) ||
_zoi__subcmd__helper_commands() {
    local commands; commands=(
'get-hash:Get a hash of a local file or a file from a URL' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'zoi helper commands' commands "$@"
}
(( $+functions[_zoi__subcmd__helper__subcmd__get-hash_commands] )) ||
_zoi__subcmd__helper__subcmd__get-hash_commands() {
    local commands; commands=()
    _describe -t commands 'zoi helper get-hash commands' commands "$@"
}
(( $+functions[_zoi__subcmd__helper__subcmd__help_commands] )) ||
_zoi__subcmd__helper__subcmd__help_commands() {
    local commands; commands=(
'get-hash:Get a hash of a local file or a file from a URL' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'zoi helper help commands' commands "$@"
}
(( $+functions[_zoi__subcmd__helper__subcmd__help__subcmd__get-hash_commands] )) ||
_zoi__subcmd__helper__subcmd__help__subcmd__get-hash_commands() {
    local commands; commands=()
    _describe -t commands 'zoi helper help get-hash commands' commands "$@"
}
(( $+functions[_zoi__subcmd__helper__subcmd__help__subcmd__help_commands] )) ||
_zoi__subcmd__helper__subcmd__help__subcmd__help_commands() {
    local commands; commands=()
    _describe -t commands 'zoi helper help help commands' commands "$@"
}
(( $+functions[_zoi__subcmd__history_commands] )) ||
_zoi__subcmd__history_commands() {
    local commands; commands=()
    _describe -t commands 'zoi history commands' commands "$@"
}
(( $+functions[_zoi__subcmd__info_commands] )) ||
_zoi__subcmd__info_commands() {
    local commands; commands=()
    _describe -t commands 'zoi info commands' commands "$@"
}
(( $+functions[_zoi__subcmd__install_commands] )) ||
_zoi__subcmd__install_commands() {
    local commands; commands=()
    _describe -t commands 'zoi install commands' commands "$@"
}
(( $+functions[_zoi__subcmd__list_commands] )) ||
_zoi__subcmd__list_commands() {
    local commands; commands=()
    _describe -t commands 'zoi list commands' commands "$@"
}
(( $+functions[_zoi__subcmd__man_commands] )) ||
_zoi__subcmd__man_commands() {
    local commands; commands=()
    _describe -t commands 'zoi man commands' commands "$@"
}
(( $+functions[_zoi__subcmd__mark_commands] )) ||
_zoi__subcmd__mark_commands() {
    local commands; commands=()
    _describe -t commands 'zoi mark commands' commands "$@"
}
(( $+functions[_zoi__subcmd__migrate_commands] )) ||
_zoi__subcmd__migrate_commands() {
    local commands; commands=(
'scoop:Convert a Scoop manifest (scoop.json) into a Zoi .pkg.lua package file' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'zoi migrate commands' commands "$@"
}
(( $+functions[_zoi__subcmd__migrate__subcmd__help_commands] )) ||
_zoi__subcmd__migrate__subcmd__help_commands() {
    local commands; commands=(
'scoop:Convert a Scoop manifest (scoop.json) into a Zoi .pkg.lua package file' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'zoi migrate help commands' commands "$@"
}
(( $+functions[_zoi__subcmd__migrate__subcmd__help__subcmd__help_commands] )) ||
_zoi__subcmd__migrate__subcmd__help__subcmd__help_commands() {
    local commands; commands=()
    _describe -t commands 'zoi migrate help help commands' commands "$@"
}
(( $+functions[_zoi__subcmd__migrate__subcmd__help__subcmd__scoop_commands] )) ||
_zoi__subcmd__migrate__subcmd__help__subcmd__scoop_commands() {
    local commands; commands=()
    _describe -t commands 'zoi migrate help scoop commands' commands "$@"
}
(( $+functions[_zoi__subcmd__migrate__subcmd__scoop_commands] )) ||
_zoi__subcmd__migrate__subcmd__scoop_commands() {
    local commands; commands=()
    _describe -t commands 'zoi migrate scoop commands' commands "$@"
}
(( $+functions[_zoi__subcmd__owner_commands] )) ||
_zoi__subcmd__owner_commands() {
    local commands; commands=()
    _describe -t commands 'zoi owner commands' commands "$@"
}
(( $+functions[_zoi__subcmd__package_commands] )) ||
_zoi__subcmd__package_commands() {
    local commands; commands=(
'build:Build a package from a pkg.lua file' \
'test:Test a package from a pkg.lua file' \
'install:Install a package from a local archive' \
'doctor:Lint and validate a package definition for maintainers' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'zoi package commands' commands "$@"
}
(( $+functions[_zoi__subcmd__package__subcmd__build_commands] )) ||
_zoi__subcmd__package__subcmd__build_commands() {
    local commands; commands=()
    _describe -t commands 'zoi package build commands' commands "$@"
}
(( $+functions[_zoi__subcmd__package__subcmd__doctor_commands] )) ||
_zoi__subcmd__package__subcmd__doctor_commands() {
    local commands; commands=()
    _describe -t commands 'zoi package doctor commands' commands "$@"
}
(( $+functions[_zoi__subcmd__package__subcmd__help_commands] )) ||
_zoi__subcmd__package__subcmd__help_commands() {
    local commands; commands=(
'build:Build a package from a pkg.lua file' \
'test:Test a package from a pkg.lua file' \
'install:Install a package from a local archive' \
'doctor:Lint and validate a package definition for maintainers' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'zoi package help commands' commands "$@"
}
(( $+functions[_zoi__subcmd__package__subcmd__help__subcmd__build_commands] )) ||
_zoi__subcmd__package__subcmd__help__subcmd__build_commands() {
    local commands; commands=()
    _describe -t commands 'zoi package help build commands' commands "$@"
}
(( $+functions[_zoi__subcmd__package__subcmd__help__subcmd__doctor_commands] )) ||
_zoi__subcmd__package__subcmd__help__subcmd__doctor_commands() {
    local commands; commands=()
    _describe -t commands 'zoi package help doctor commands' commands "$@"
}
(( $+functions[_zoi__subcmd__package__subcmd__help__subcmd__help_commands] )) ||
_zoi__subcmd__package__subcmd__help__subcmd__help_commands() {
    local commands; commands=()
    _describe -t commands 'zoi package help help commands' commands "$@"
}
(( $+functions[_zoi__subcmd__package__subcmd__help__subcmd__install_commands] )) ||
_zoi__subcmd__package__subcmd__help__subcmd__install_commands() {
    local commands; commands=()
    _describe -t commands 'zoi package help install commands' commands "$@"
}
(( $+functions[_zoi__subcmd__package__subcmd__help__subcmd__test_commands] )) ||
_zoi__subcmd__package__subcmd__help__subcmd__test_commands() {
    local commands; commands=()
    _describe -t commands 'zoi package help test commands' commands "$@"
}
(( $+functions[_zoi__subcmd__package__subcmd__install_commands] )) ||
_zoi__subcmd__package__subcmd__install_commands() {
    local commands; commands=()
    _describe -t commands 'zoi package install commands' commands "$@"
}
(( $+functions[_zoi__subcmd__package__subcmd__test_commands] )) ||
_zoi__subcmd__package__subcmd__test_commands() {
    local commands; commands=()
    _describe -t commands 'zoi package test commands' commands "$@"
}
(( $+functions[_zoi__subcmd__pgp_commands] )) ||
_zoi__subcmd__pgp_commands() {
    local commands; commands=(
'add:Add a PGP key from a file, URL, or a keyserver' \
'remove:Remove a PGP key' \
'list:List all imported PGP keys' \
'search:Search for a PGP key by user ID or fingerprint' \
'show:Show the public key of a stored PGP key' \
'verify:Verify a file'\''s detached signature' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'zoi pgp commands' commands "$@"
}
(( $+functions[_zoi__subcmd__pgp__subcmd__add_commands] )) ||
_zoi__subcmd__pgp__subcmd__add_commands() {
    local commands; commands=()
    _describe -t commands 'zoi pgp add commands' commands "$@"
}
(( $+functions[_zoi__subcmd__pgp__subcmd__help_commands] )) ||
_zoi__subcmd__pgp__subcmd__help_commands() {
    local commands; commands=(
'add:Add a PGP key from a file, URL, or a keyserver' \
'remove:Remove a PGP key' \
'list:List all imported PGP keys' \
'search:Search for a PGP key by user ID or fingerprint' \
'show:Show the public key of a stored PGP key' \
'verify:Verify a file'\''s detached signature' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'zoi pgp help commands' commands "$@"
}
(( $+functions[_zoi__subcmd__pgp__subcmd__help__subcmd__add_commands] )) ||
_zoi__subcmd__pgp__subcmd__help__subcmd__add_commands() {
    local commands; commands=()
    _describe -t commands 'zoi pgp help add commands' commands "$@"
}
(( $+functions[_zoi__subcmd__pgp__subcmd__help__subcmd__help_commands] )) ||
_zoi__subcmd__pgp__subcmd__help__subcmd__help_commands() {
    local commands; commands=()
    _describe -t commands 'zoi pgp help help commands' commands "$@"
}
(( $+functions[_zoi__subcmd__pgp__subcmd__help__subcmd__list_commands] )) ||
_zoi__subcmd__pgp__subcmd__help__subcmd__list_commands() {
    local commands; commands=()
    _describe -t commands 'zoi pgp help list commands' commands "$@"
}
(( $+functions[_zoi__subcmd__pgp__subcmd__help__subcmd__remove_commands] )) ||
_zoi__subcmd__pgp__subcmd__help__subcmd__remove_commands() {
    local commands; commands=()
    _describe -t commands 'zoi pgp help remove commands' commands "$@"
}
(( $+functions[_zoi__subcmd__pgp__subcmd__help__subcmd__search_commands] )) ||
_zoi__subcmd__pgp__subcmd__help__subcmd__search_commands() {
    local commands; commands=()
    _describe -t commands 'zoi pgp help search commands' commands "$@"
}
(( $+functions[_zoi__subcmd__pgp__subcmd__help__subcmd__show_commands] )) ||
_zoi__subcmd__pgp__subcmd__help__subcmd__show_commands() {
    local commands; commands=()
    _describe -t commands 'zoi pgp help show commands' commands "$@"
}
(( $+functions[_zoi__subcmd__pgp__subcmd__help__subcmd__verify_commands] )) ||
_zoi__subcmd__pgp__subcmd__help__subcmd__verify_commands() {
    local commands; commands=()
    _describe -t commands 'zoi pgp help verify commands' commands "$@"
}
(( $+functions[_zoi__subcmd__pgp__subcmd__list_commands] )) ||
_zoi__subcmd__pgp__subcmd__list_commands() {
    local commands; commands=()
    _describe -t commands 'zoi pgp list commands' commands "$@"
}
(( $+functions[_zoi__subcmd__pgp__subcmd__remove_commands] )) ||
_zoi__subcmd__pgp__subcmd__remove_commands() {
    local commands; commands=()
    _describe -t commands 'zoi pgp remove commands' commands "$@"
}
(( $+functions[_zoi__subcmd__pgp__subcmd__search_commands] )) ||
_zoi__subcmd__pgp__subcmd__search_commands() {
    local commands; commands=()
    _describe -t commands 'zoi pgp search commands' commands "$@"
}
(( $+functions[_zoi__subcmd__pgp__subcmd__show_commands] )) ||
_zoi__subcmd__pgp__subcmd__show_commands() {
    local commands; commands=()
    _describe -t commands 'zoi pgp show commands' commands "$@"
}
(( $+functions[_zoi__subcmd__pgp__subcmd__verify_commands] )) ||
_zoi__subcmd__pgp__subcmd__verify_commands() {
    local commands; commands=()
    _describe -t commands 'zoi pgp verify commands' commands "$@"
}
(( $+functions[_zoi__subcmd__pin_commands] )) ||
_zoi__subcmd__pin_commands() {
    local commands; commands=()
    _describe -t commands 'zoi pin commands' commands "$@"
}
(( $+functions[_zoi__subcmd__provides_commands] )) ||
_zoi__subcmd__provides_commands() {
    local commands; commands=()
    _describe -t commands 'zoi provides commands' commands "$@"
}
(( $+functions[_zoi__subcmd__repo_commands] )) ||
_zoi__subcmd__repo_commands() {
    local commands; commands=(
'add:Add a repository to the configuration or clone from a git URL' \
'remove:Remove a repository from the active configuration' \
'list:List repositories (active by default); use \`list all\` to show all' \
'git:Manage cloned git repositories' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'zoi repo commands' commands "$@"
}
(( $+functions[_zoi__subcmd__repo__subcmd__add_commands] )) ||
_zoi__subcmd__repo__subcmd__add_commands() {
    local commands; commands=()
    _describe -t commands 'zoi repo add commands' commands "$@"
}
(( $+functions[_zoi__subcmd__repo__subcmd__git_commands] )) ||
_zoi__subcmd__repo__subcmd__git_commands() {
    local commands; commands=(
'list:Show only cloned git repositories (~/.zoi/pkgs/git)' \
'rm:Remove a cloned git repository directory (~/.zoi/pkgs/git/<repo-name>)' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'zoi repo git commands' commands "$@"
}
(( $+functions[_zoi__subcmd__repo__subcmd__git__subcmd__help_commands] )) ||
_zoi__subcmd__repo__subcmd__git__subcmd__help_commands() {
    local commands; commands=(
'list:Show only cloned git repositories (~/.zoi/pkgs/git)' \
'rm:Remove a cloned git repository directory (~/.zoi/pkgs/git/<repo-name>)' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'zoi repo git help commands' commands "$@"
}
(( $+functions[_zoi__subcmd__repo__subcmd__git__subcmd__help__subcmd__help_commands] )) ||
_zoi__subcmd__repo__subcmd__git__subcmd__help__subcmd__help_commands() {
    local commands; commands=()
    _describe -t commands 'zoi repo git help help commands' commands "$@"
}
(( $+functions[_zoi__subcmd__repo__subcmd__git__subcmd__help__subcmd__list_commands] )) ||
_zoi__subcmd__repo__subcmd__git__subcmd__help__subcmd__list_commands() {
    local commands; commands=()
    _describe -t commands 'zoi repo git help list commands' commands "$@"
}
(( $+functions[_zoi__subcmd__repo__subcmd__git__subcmd__help__subcmd__rm_commands] )) ||
_zoi__subcmd__repo__subcmd__git__subcmd__help__subcmd__rm_commands() {
    local commands; commands=()
    _describe -t commands 'zoi repo git help rm commands' commands "$@"
}
(( $+functions[_zoi__subcmd__repo__subcmd__git__subcmd__list_commands] )) ||
_zoi__subcmd__repo__subcmd__git__subcmd__list_commands() {
    local commands; commands=()
    _describe -t commands 'zoi repo git list commands' commands "$@"
}
(( $+functions[_zoi__subcmd__repo__subcmd__git__subcmd__rm_commands] )) ||
_zoi__subcmd__repo__subcmd__git__subcmd__rm_commands() {
    local commands; commands=()
    _describe -t commands 'zoi repo git rm commands' commands "$@"
}
(( $+functions[_zoi__subcmd__repo__subcmd__help_commands] )) ||
_zoi__subcmd__repo__subcmd__help_commands() {
    local commands; commands=(
'add:Add a repository to the configuration or clone from a git URL' \
'remove:Remove a repository from the active configuration' \
'list:List repositories (active by default); use \`list all\` to show all' \
'git:Manage cloned git repositories' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'zoi repo help commands' commands "$@"
}
(( $+functions[_zoi__subcmd__repo__subcmd__help__subcmd__add_commands] )) ||
_zoi__subcmd__repo__subcmd__help__subcmd__add_commands() {
    local commands; commands=()
    _describe -t commands 'zoi repo help add commands' commands "$@"
}
(( $+functions[_zoi__subcmd__repo__subcmd__help__subcmd__git_commands] )) ||
_zoi__subcmd__repo__subcmd__help__subcmd__git_commands() {
    local commands; commands=(
'list:Show only cloned git repositories (~/.zoi/pkgs/git)' \
'rm:Remove a cloned git repository directory (~/.zoi/pkgs/git/<repo-name>)' \
    )
    _describe -t commands 'zoi repo help git commands' commands "$@"
}
(( $+functions[_zoi__subcmd__repo__subcmd__help__subcmd__git__subcmd__list_commands] )) ||
_zoi__subcmd__repo__subcmd__help__subcmd__git__subcmd__list_commands() {
    local commands; commands=()
    _describe -t commands 'zoi repo help git list commands' commands "$@"
}
(( $+functions[_zoi__subcmd__repo__subcmd__help__subcmd__git__subcmd__rm_commands] )) ||
_zoi__subcmd__repo__subcmd__help__subcmd__git__subcmd__rm_commands() {
    local commands; commands=()
    _describe -t commands 'zoi repo help git rm commands' commands "$@"
}
(( $+functions[_zoi__subcmd__repo__subcmd__help__subcmd__help_commands] )) ||
_zoi__subcmd__repo__subcmd__help__subcmd__help_commands() {
    local commands; commands=()
    _describe -t commands 'zoi repo help help commands' commands "$@"
}
(( $+functions[_zoi__subcmd__repo__subcmd__help__subcmd__list_commands] )) ||
_zoi__subcmd__repo__subcmd__help__subcmd__list_commands() {
    local commands; commands=(
'all:Show all available repositories (active + discovered)' \
    )
    _describe -t commands 'zoi repo help list commands' commands "$@"
}
(( $+functions[_zoi__subcmd__repo__subcmd__help__subcmd__list__subcmd__all_commands] )) ||
_zoi__subcmd__repo__subcmd__help__subcmd__list__subcmd__all_commands() {
    local commands; commands=()
    _describe -t commands 'zoi repo help list all commands' commands "$@"
}
(( $+functions[_zoi__subcmd__repo__subcmd__help__subcmd__remove_commands] )) ||
_zoi__subcmd__repo__subcmd__help__subcmd__remove_commands() {
    local commands; commands=()
    _describe -t commands 'zoi repo help remove commands' commands "$@"
}
(( $+functions[_zoi__subcmd__repo__subcmd__list_commands] )) ||
_zoi__subcmd__repo__subcmd__list_commands() {
    local commands; commands=(
'all:Show all available repositories (active + discovered)' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'zoi repo list commands' commands "$@"
}
(( $+functions[_zoi__subcmd__repo__subcmd__list__subcmd__all_commands] )) ||
_zoi__subcmd__repo__subcmd__list__subcmd__all_commands() {
    local commands; commands=()
    _describe -t commands 'zoi repo list all commands' commands "$@"
}
(( $+functions[_zoi__subcmd__repo__subcmd__list__subcmd__help_commands] )) ||
_zoi__subcmd__repo__subcmd__list__subcmd__help_commands() {
    local commands; commands=(
'all:Show all available repositories (active + discovered)' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'zoi repo list help commands' commands "$@"
}
(( $+functions[_zoi__subcmd__repo__subcmd__list__subcmd__help__subcmd__all_commands] )) ||
_zoi__subcmd__repo__subcmd__list__subcmd__help__subcmd__all_commands() {
    local commands; commands=()
    _describe -t commands 'zoi repo list help all commands' commands "$@"
}
(( $+functions[_zoi__subcmd__repo__subcmd__list__subcmd__help__subcmd__help_commands] )) ||
_zoi__subcmd__repo__subcmd__list__subcmd__help__subcmd__help_commands() {
    local commands; commands=()
    _describe -t commands 'zoi repo list help help commands' commands "$@"
}
(( $+functions[_zoi__subcmd__repo__subcmd__remove_commands] )) ||
_zoi__subcmd__repo__subcmd__remove_commands() {
    local commands; commands=()
    _describe -t commands 'zoi repo remove commands' commands "$@"
}
(( $+functions[_zoi__subcmd__rollback_commands] )) ||
_zoi__subcmd__rollback_commands() {
    local commands; commands=()
    _describe -t commands 'zoi rollback commands' commands "$@"
}
(( $+functions[_zoi__subcmd__run_commands] )) ||
_zoi__subcmd__run_commands() {
    local commands; commands=()
    _describe -t commands 'zoi run commands' commands "$@"
}
(( $+functions[_zoi__subcmd__search_commands] )) ||
_zoi__subcmd__search_commands() {
    local commands; commands=()
    _describe -t commands 'zoi search commands' commands "$@"
}
(( $+functions[_zoi__subcmd__service_commands] )) ||
_zoi__subcmd__service_commands() {
    local commands; commands=(
'start:Start a service' \
'stop:Stop a service' \
'restart:Restart a service' \
'status:Show the status of a service' \
'list:List all packages that define a service and their current status' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'zoi service commands' commands "$@"
}
(( $+functions[_zoi__subcmd__service__subcmd__help_commands] )) ||
_zoi__subcmd__service__subcmd__help_commands() {
    local commands; commands=(
'start:Start a service' \
'stop:Stop a service' \
'restart:Restart a service' \
'status:Show the status of a service' \
'list:List all packages that define a service and their current status' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'zoi service help commands' commands "$@"
}
(( $+functions[_zoi__subcmd__service__subcmd__help__subcmd__help_commands] )) ||
_zoi__subcmd__service__subcmd__help__subcmd__help_commands() {
    local commands; commands=()
    _describe -t commands 'zoi service help help commands' commands "$@"
}
(( $+functions[_zoi__subcmd__service__subcmd__help__subcmd__list_commands] )) ||
_zoi__subcmd__service__subcmd__help__subcmd__list_commands() {
    local commands; commands=()
    _describe -t commands 'zoi service help list commands' commands "$@"
}
(( $+functions[_zoi__subcmd__service__subcmd__help__subcmd__restart_commands] )) ||
_zoi__subcmd__service__subcmd__help__subcmd__restart_commands() {
    local commands; commands=()
    _describe -t commands 'zoi service help restart commands' commands "$@"
}
(( $+functions[_zoi__subcmd__service__subcmd__help__subcmd__start_commands] )) ||
_zoi__subcmd__service__subcmd__help__subcmd__start_commands() {
    local commands; commands=()
    _describe -t commands 'zoi service help start commands' commands "$@"
}
(( $+functions[_zoi__subcmd__service__subcmd__help__subcmd__status_commands] )) ||
_zoi__subcmd__service__subcmd__help__subcmd__status_commands() {
    local commands; commands=()
    _describe -t commands 'zoi service help status commands' commands "$@"
}
(( $+functions[_zoi__subcmd__service__subcmd__help__subcmd__stop_commands] )) ||
_zoi__subcmd__service__subcmd__help__subcmd__stop_commands() {
    local commands; commands=()
    _describe -t commands 'zoi service help stop commands' commands "$@"
}
(( $+functions[_zoi__subcmd__service__subcmd__list_commands] )) ||
_zoi__subcmd__service__subcmd__list_commands() {
    local commands; commands=()
    _describe -t commands 'zoi service list commands' commands "$@"
}
(( $+functions[_zoi__subcmd__service__subcmd__restart_commands] )) ||
_zoi__subcmd__service__subcmd__restart_commands() {
    local commands; commands=()
    _describe -t commands 'zoi service restart commands' commands "$@"
}
(( $+functions[_zoi__subcmd__service__subcmd__start_commands] )) ||
_zoi__subcmd__service__subcmd__start_commands() {
    local commands; commands=()
    _describe -t commands 'zoi service start commands' commands "$@"
}
(( $+functions[_zoi__subcmd__service__subcmd__status_commands] )) ||
_zoi__subcmd__service__subcmd__status_commands() {
    local commands; commands=()
    _describe -t commands 'zoi service status commands' commands "$@"
}
(( $+functions[_zoi__subcmd__service__subcmd__stop_commands] )) ||
_zoi__subcmd__service__subcmd__stop_commands() {
    local commands; commands=()
    _describe -t commands 'zoi service stop commands' commands "$@"
}
(( $+functions[_zoi__subcmd__shell_commands] )) ||
_zoi__subcmd__shell_commands() {
    local commands; commands=()
    _describe -t commands 'zoi shell commands' commands "$@"
}
(( $+functions[_zoi__subcmd__show_commands] )) ||
_zoi__subcmd__show_commands() {
    local commands; commands=()
    _describe -t commands 'zoi show commands' commands "$@"
}
(( $+functions[_zoi__subcmd__sync_commands] )) ||
_zoi__subcmd__sync_commands() {
    local commands; commands=(
'add:Add a new registry' \
'remove:Remove a configured registry by its handle' \
'list:List configured registries' \
'set:Set the default registry URL' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'zoi sync commands' commands "$@"
}
(( $+functions[_zoi__subcmd__sync__subcmd__add_commands] )) ||
_zoi__subcmd__sync__subcmd__add_commands() {
    local commands; commands=()
    _describe -t commands 'zoi sync add commands' commands "$@"
}
(( $+functions[_zoi__subcmd__sync__subcmd__help_commands] )) ||
_zoi__subcmd__sync__subcmd__help_commands() {
    local commands; commands=(
'add:Add a new registry' \
'remove:Remove a configured registry by its handle' \
'list:List configured registries' \
'set:Set the default registry URL' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'zoi sync help commands' commands "$@"
}
(( $+functions[_zoi__subcmd__sync__subcmd__help__subcmd__add_commands] )) ||
_zoi__subcmd__sync__subcmd__help__subcmd__add_commands() {
    local commands; commands=()
    _describe -t commands 'zoi sync help add commands' commands "$@"
}
(( $+functions[_zoi__subcmd__sync__subcmd__help__subcmd__help_commands] )) ||
_zoi__subcmd__sync__subcmd__help__subcmd__help_commands() {
    local commands; commands=()
    _describe -t commands 'zoi sync help help commands' commands "$@"
}
(( $+functions[_zoi__subcmd__sync__subcmd__help__subcmd__list_commands] )) ||
_zoi__subcmd__sync__subcmd__help__subcmd__list_commands() {
    local commands; commands=()
    _describe -t commands 'zoi sync help list commands' commands "$@"
}
(( $+functions[_zoi__subcmd__sync__subcmd__help__subcmd__remove_commands] )) ||
_zoi__subcmd__sync__subcmd__help__subcmd__remove_commands() {
    local commands; commands=()
    _describe -t commands 'zoi sync help remove commands' commands "$@"
}
(( $+functions[_zoi__subcmd__sync__subcmd__help__subcmd__set_commands] )) ||
_zoi__subcmd__sync__subcmd__help__subcmd__set_commands() {
    local commands; commands=()
    _describe -t commands 'zoi sync help set commands' commands "$@"
}
(( $+functions[_zoi__subcmd__sync__subcmd__list_commands] )) ||
_zoi__subcmd__sync__subcmd__list_commands() {
    local commands; commands=()
    _describe -t commands 'zoi sync list commands' commands "$@"
}
(( $+functions[_zoi__subcmd__sync__subcmd__remove_commands] )) ||
_zoi__subcmd__sync__subcmd__remove_commands() {
    local commands; commands=()
    _describe -t commands 'zoi sync remove commands' commands "$@"
}
(( $+functions[_zoi__subcmd__sync__subcmd__set_commands] )) ||
_zoi__subcmd__sync__subcmd__set_commands() {
    local commands; commands=()
    _describe -t commands 'zoi sync set commands' commands "$@"
}
(( $+functions[_zoi__subcmd__system_commands] )) ||
_zoi__subcmd__system_commands() {
    local commands; commands=(
'apply:Apply the declarative system configuration from /etc/zoi/zoi.lua' \
'encrypt:Encrypt a phrase (e.g. password) for use in zoi.lua' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'zoi system commands' commands "$@"
}
(( $+functions[_zoi__subcmd__system__subcmd__apply_commands] )) ||
_zoi__subcmd__system__subcmd__apply_commands() {
    local commands; commands=()
    _describe -t commands 'zoi system apply commands' commands "$@"
}
(( $+functions[_zoi__subcmd__system__subcmd__encrypt_commands] )) ||
_zoi__subcmd__system__subcmd__encrypt_commands() {
    local commands; commands=()
    _describe -t commands 'zoi system encrypt commands' commands "$@"
}
(( $+functions[_zoi__subcmd__system__subcmd__help_commands] )) ||
_zoi__subcmd__system__subcmd__help_commands() {
    local commands; commands=(
'apply:Apply the declarative system configuration from /etc/zoi/zoi.lua' \
'encrypt:Encrypt a phrase (e.g. password) for use in zoi.lua' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'zoi system help commands' commands "$@"
}
(( $+functions[_zoi__subcmd__system__subcmd__help__subcmd__apply_commands] )) ||
_zoi__subcmd__system__subcmd__help__subcmd__apply_commands() {
    local commands; commands=()
    _describe -t commands 'zoi system help apply commands' commands "$@"
}
(( $+functions[_zoi__subcmd__system__subcmd__help__subcmd__encrypt_commands] )) ||
_zoi__subcmd__system__subcmd__help__subcmd__encrypt_commands() {
    local commands; commands=()
    _describe -t commands 'zoi system help encrypt commands' commands "$@"
}
(( $+functions[_zoi__subcmd__system__subcmd__help__subcmd__help_commands] )) ||
_zoi__subcmd__system__subcmd__help__subcmd__help_commands() {
    local commands; commands=()
    _describe -t commands 'zoi system help help commands' commands "$@"
}
(( $+functions[_zoi__subcmd__telemetry_commands] )) ||
_zoi__subcmd__telemetry_commands() {
    local commands; commands=()
    _describe -t commands 'zoi telemetry commands' commands "$@"
}
(( $+functions[_zoi__subcmd__transaction_commands] )) ||
_zoi__subcmd__transaction_commands() {
    local commands; commands=(
'list:List known transaction logs' \
'show:Show details for a transaction' \
'files:List modified files for a transaction' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'zoi transaction commands' commands "$@"
}
(( $+functions[_zoi__subcmd__transaction__subcmd__files_commands] )) ||
_zoi__subcmd__transaction__subcmd__files_commands() {
    local commands; commands=()
    _describe -t commands 'zoi transaction files commands' commands "$@"
}
(( $+functions[_zoi__subcmd__transaction__subcmd__help_commands] )) ||
_zoi__subcmd__transaction__subcmd__help_commands() {
    local commands; commands=(
'list:List known transaction logs' \
'show:Show details for a transaction' \
'files:List modified files for a transaction' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'zoi transaction help commands' commands "$@"
}
(( $+functions[_zoi__subcmd__transaction__subcmd__help__subcmd__files_commands] )) ||
_zoi__subcmd__transaction__subcmd__help__subcmd__files_commands() {
    local commands; commands=()
    _describe -t commands 'zoi transaction help files commands' commands "$@"
}
(( $+functions[_zoi__subcmd__transaction__subcmd__help__subcmd__help_commands] )) ||
_zoi__subcmd__transaction__subcmd__help__subcmd__help_commands() {
    local commands; commands=()
    _describe -t commands 'zoi transaction help help commands' commands "$@"
}
(( $+functions[_zoi__subcmd__transaction__subcmd__help__subcmd__list_commands] )) ||
_zoi__subcmd__transaction__subcmd__help__subcmd__list_commands() {
    local commands; commands=()
    _describe -t commands 'zoi transaction help list commands' commands "$@"
}
(( $+functions[_zoi__subcmd__transaction__subcmd__help__subcmd__show_commands] )) ||
_zoi__subcmd__transaction__subcmd__help__subcmd__show_commands() {
    local commands; commands=()
    _describe -t commands 'zoi transaction help show commands' commands "$@"
}
(( $+functions[_zoi__subcmd__transaction__subcmd__list_commands] )) ||
_zoi__subcmd__transaction__subcmd__list_commands() {
    local commands; commands=()
    _describe -t commands 'zoi transaction list commands' commands "$@"
}
(( $+functions[_zoi__subcmd__transaction__subcmd__show_commands] )) ||
_zoi__subcmd__transaction__subcmd__show_commands() {
    local commands; commands=()
    _describe -t commands 'zoi transaction show commands' commands "$@"
}
(( $+functions[_zoi__subcmd__tree_commands] )) ||
_zoi__subcmd__tree_commands() {
    local commands; commands=()
    _describe -t commands 'zoi tree commands' commands "$@"
}
(( $+functions[_zoi__subcmd__uninstall_commands] )) ||
_zoi__subcmd__uninstall_commands() {
    local commands; commands=()
    _describe -t commands 'zoi uninstall commands' commands "$@"
}
(( $+functions[_zoi__subcmd__unpin_commands] )) ||
_zoi__subcmd__unpin_commands() {
    local commands; commands=()
    _describe -t commands 'zoi unpin commands' commands "$@"
}
(( $+functions[_zoi__subcmd__update_commands] )) ||
_zoi__subcmd__update_commands() {
    local commands; commands=()
    _describe -t commands 'zoi update commands' commands "$@"
}
(( $+functions[_zoi__subcmd__upgrade_commands] )) ||
_zoi__subcmd__upgrade_commands() {
    local commands; commands=()
    _describe -t commands 'zoi upgrade commands' commands "$@"
}
(( $+functions[_zoi__subcmd__version_commands] )) ||
_zoi__subcmd__version_commands() {
    local commands; commands=()
    _describe -t commands 'zoi version commands' commands "$@"
}
(( $+functions[_zoi__subcmd__why_commands] )) ||
_zoi__subcmd__why_commands() {
    local commands; commands=()
    _describe -t commands 'zoi why commands' commands "$@"
}

if [ "$funcstack[1]" = "_zoi" ]; then
    _zoi "$@"
else
    compdef _zoi zoi
fi
