#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 .zpa 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 .zpa 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
;;
(complete)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .zpa 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 complete for:(bash elvish fish powershell zsh)' \
':index -- Current word index (1-based):_default' \
'*::words -- All words in the command line:_default' \
&& ret=0
;;
(generate-manual)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .zpa 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 .zpa 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 .zpa 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 .zpa 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
;;
(download)
_arguments "${_arguments_options[@]}" : \
'-o+[Directory to output the downloaded file to]:OUTPUT_DIR:_files' \
'--output-dir=[Directory to output the downloaded file to]:OUTPUT_DIR:_files' \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .zpa archives]:PKG_DIRS:_files -/' \
'--archive[Download the binary archive (.zpa) \[default\]]' \
'--source[Download the source bundle (.zsa)]' \
'-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, #git@repo/name, path, or URL):_default' \
&& ret=0
;;
(sync)
_arguments "${_arguments_options[@]}" : \
'(--local)--scope=[The scope to sync the registries to]:SCOPE:(user system)' \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .zpa 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]' \
'--force[Force re-sync by removing existing databases and re-cloning from scratch]' \
'--local[Sync registries to the project'\''s local .zoi/pkgs/db/ using revisions from zoi.lua]' \
'--frozen[When used with --local, sync using revisions from zoi.lock instead of zoi.lua]' \
'-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 .zpa 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 .zpa 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 .zpa 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 .zpa 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 .zpa 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 .zpa 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 .zpa 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 .zpa archives]:PKG_DIRS:_files -/' \
'--raw[Display the raw, unformatted package file]' \
'--purl[Use PURL (Package URL) specification for resolving package]' \
'-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, #git@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 .zpa 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, #git@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 .zpa 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 .zpa 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, #git@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 .zpa 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, #git@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 .zpa 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, #git@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 .zpa 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, #git@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 .zpa 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[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)]' \
'--purl[Use PURL (Package URL) specification for resolving 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]' \
'*::sources -- Package identifier (e.g. @repo/name, #git@repo/name, path, or URL):_default' \
&& ret=0
;;
(use)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .zpa archives]:PKG_DIRS:_files -/' \
'-g[Add to global configuration instead of project]' \
'--global[Add to global configuration instead of project]' \
'-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, #git@repo/name, path, or URL):_default' \
&& 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 .zpa 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]' \
'--dry-run[Do not actually uninstall, just show what would be done]' \
'--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, #git@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 .zpa 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[@]}" : \
'--export-shell=[Export environment variables for the current shell]:EXPORT_SHELL:(bash elvish fish powershell zsh)' \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .zpa 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' \
'--repo=[Temporary clone a repository and enter its development shell]:REPO:_default' \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .zpa 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 .zpa archives]:PKG_DIRS:_files -/' \
'--force[Force a full download instead of a delta upgrade]' \
'-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 .zpa 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 .zpa 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, #git@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 .zpa 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 .zpa 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, #git@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 .zpa 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 .zpa 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 .zpa 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 .zpa 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 .zpa 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 .zpa 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 .zpa 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
;;
(enable)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .zpa 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 enable:_default' \
&& ret=0
;;
(disable)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .zpa 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 disable:_default' \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .zpa 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
;;
(enable)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(disable)
_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]:ALL_PACKAGES:_default' \
'*--package=[Packages to include in the ephemeral environment]:ALL_PACKAGES:_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 .zpa archives]:PKG_DIRS:_files -/' \
'--hook[Generate a shell hook for automatic environment activation]' \
'-v[Show additional details (resolution, installation progress, etc.)]' \
'--verbose[Show additional details (resolution, installation progress, etc.)]' \
'-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[@]}" : \
'--bin=[Specific binary to run (required if package provides multiple binaries)]:BIN:_default' \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .zpa archives]:PKG_DIRS:_files -/' \
'-v[Show additional execution details]' \
'--verbose[Show additional execution details]' \
'-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, #git@repo/name, path, or URL):_default' \
'*::args -- Arguments to pass to the executed binary:_default' \
&& ret=0
;;
(clean)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .zpa 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
;;
(clone)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .zpa 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, #git@repo/name, path, or URL):_default' \
'::location -- The location to clone the repository to:_default' \
&& ret=0
;;
(cache)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .zpa 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 .zpa 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 .zpa 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 .zpa 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 .zpa 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 .zpa 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 .zpa 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 .zpa 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 .zpa 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 .zpa 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 .zpa 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 .zpa 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 .zpa 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
;;
(registry)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .zpa 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__registry_commands" \
"*::: :->registry" \
&& ret=0

    case $state in
    (registry)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-registry-command-$line[1]:"
        case $line[1] in
            (init)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .zpa 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 where the registry should be initialized:_files' \
&& ret=0
;;
(generate-metadata)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .zpa 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
;;
(check)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .zpa 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
;;
(add-package)
_arguments "${_arguments_options[@]}" : \
'-r+[Repository tier (e.g. community, main)]:REPO:_default' \
'--repo=[Repository tier (e.g. community, main)]:REPO:_default' \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .zpa 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 package to add:_default' \
&& ret=0
;;
(add-advisory)
_arguments "${_arguments_options[@]}" : \
'-r+[Repository tier (e.g. community, main)]:REPO:_default' \
'--repo=[Repository tier (e.g. community, main)]:REPO:_default' \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .zpa 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 name to add an advisory for:_default' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_zoi__subcmd__registry__subcmd__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-registry-help-command-$line[1]:"
        case $line[1] in
            (init)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(generate-metadata)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(check)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(add-package)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(add-advisory)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(home)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .zpa 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__home_commands" \
"*::: :->home" \
&& ret=0

    case $state in
    (home)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-home-command-$line[1]:"
        case $line[1] in
            (apply)
_arguments "${_arguments_options[@]}" : \
'-f+[Path to the home configuration file]:FILE:_default' \
'--file=[Path to the home configuration file]:FILE:_default' \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .zpa 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__home__subcmd__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-home-help-command-$line[1]:"
        case $line[1] in
            (apply)
_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 .zpa 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 .zpa 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]' \
'::file -- Path to the system configuration file:_default' \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .zpa 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
;;
(status)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .zpa 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
;;
(rollback)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .zpa 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 -- Generation ID to roll back to:_default' \
&& ret=0
;;
(secret)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .zpa 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__subcmd__secret_commands" \
"*::: :->secret" \
&& ret=0

    case $state in
    (secret)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-system-secret-command-$line[1]:"
        case $line[1] in
            (hash)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .zpa 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]' \
':password -- The password to hash:_default' \
&& ret=0
;;
(encrypt)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .zpa 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]' \
':value -- The plaintext string to encrypt:_default' \
&& ret=0
;;
(decrypt)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .zpa 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]' \
':secret -- The encrypted ZOISEC string:_default' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_zoi__subcmd__system__subcmd__secret__subcmd__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-system-secret-help-command-$line[1]:"
        case $line[1] in
            (hash)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(encrypt)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(decrypt)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(distro)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .zpa 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__subcmd__distro_commands" \
"*::: :->distro" \
&& ret=0

    case $state in
    (distro)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-system-distro-command-$line[1]:"
        case $line[1] in
            (build)
_arguments "${_arguments_options[@]}" : \
'-t+[The target device or image path (e.g. /dev/sdb)]:TARGET:_default' \
'--target=[The target device or image path (e.g. /dev/sdb)]:TARGET:_default' \
'-c+[Path to the system configuration to use for the build]:CONFIG:_default' \
'--config=[Path to the system configuration to use for the build]:CONFIG:_default' \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .zpa archives]:PKG_DIRS:_files -/' \
'--dry-run[Show the build plan without executing destructive commands]' \
'-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
;;
(chroot)
_arguments "${_arguments_options[@]}" : \
'-r+[Command to run inside the chroot (defaults to /bin/bash)]:RUN:_default' \
'--run=[Command to run inside the chroot (defaults to /bin/bash)]:RUN:_default' \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .zpa archives]:PKG_DIRS:_files -/' \
'-v[Show additional details]' \
'--verbose[Show additional details]' \
'-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]' \
':target -- Path to the ZoiOS root directory:_default' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_zoi__subcmd__system__subcmd__distro__subcmd__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-system-distro-help-command-$line[1]:"
        case $line[1] in
            (build)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(chroot)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(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
;;
(list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(status)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(rollback)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(secret)
_arguments "${_arguments_options[@]}" : \
":: :_zoi__subcmd__system__subcmd__help__subcmd__secret_commands" \
"*::: :->secret" \
&& ret=0

    case $state in
    (secret)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-system-help-secret-command-$line[1]:"
        case $line[1] in
            (hash)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(encrypt)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(decrypt)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(distro)
_arguments "${_arguments_options[@]}" : \
":: :_zoi__subcmd__system__subcmd__help__subcmd__distro_commands" \
"*::: :->distro" \
&& ret=0

    case $state in
    (distro)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-system-help-distro-command-$line[1]:"
        case $line[1] in
            (build)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(chroot)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(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 .zpa 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 .zpa 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 .zpa 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 .zpa 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 .zpa 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 .zpa 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 .zpa 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 .zpa 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 .zpa 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 .zpa 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, #git@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 .zpa 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, #git@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 .zpa 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 .zpa 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 .zpa 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
;;
(rollback)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .zpa 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, #git@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 .zpa archives]:PKG_DIRS:_files -/' \
'--upstream[Always look at the upstream manual even if it'\''s downloaded]' \
'--raw[Print the manual to the terminal raw]' \
'--no-tui[Do not use the TUI, use the system pager instead]' \
'-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, #git@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 .zpa 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'\'', '\''bwrap'\'', or '\''docker'\'')]:METHOD:_default' \
'--image=[Docker image to use when method is '\''docker'\'']:IMAGE:_default' \
'--root-package=[The base package to install when using --pure (default\: @core/base\:dev)]:ROOT_PACKAGE:_default' \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .zpa archives]:PKG_DIRS:_files -/' \
'--test[Run tests before building]' \
'--install-deps[Automatically install build-time dependencies]' \
'--fakeroot[Force root ownership (UID/GID 0) in the built archive]' \
'--pure[Build in a clean, isolated sysroot. Requires a base package (specified by --root-package) to be installed into the sysroot]' \
'-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
;;
(bundle)
_arguments "${_arguments_options[@]}" : \
'-o+[Directory to output the bundled package to]:OUTPUT_DIR:_files' \
'--output-dir=[Directory to output the bundled package to]:OUTPUT_DIR:_files' \
'--sign=[Sign the bundle with a PGP key]:SIGN:_default' \
'--version-override=[Override the package version]:VERSION_OVERRIDE:_default' \
'-t+[The build type to bundle (e.g. '\''source'\'', '\''pre-compiled'\'')]:BUILD_TYPE:_default' \
'--build-type=[The build type to bundle (e.g. '\''source'\'', '\''pre-compiled'\'')]:BUILD_TYPE:_default' \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .zpa 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
;;
(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'\'', '\''bwrap'\'', or '\''docker'\'')]:METHOD:_default' \
'--image=[Docker image to use when method is '\''docker'\'']:IMAGE:_default' \
'--root-package=[The base package to install when using --pure (default\: @core/base\:dev)]:ROOT_PACKAGE:_default' \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .zpa archives]:PKG_DIRS:_files -/' \
'--test[Run tests before building]' \
'--install-deps[Automatically install build-time dependencies]' \
'--fakeroot[Force root ownership (UID/GID 0) in the built archive]' \
'--pure[Build in a clean, isolated sysroot. Requires a base package (specified by --root-package) to be installed into the sysroot]' \
'-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 .zpa 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.zpa):_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 .zpa 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
;;
(init-lsp)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .zpa 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 where the LSP configuration should be initialized:_files' \
&& ret=0
;;
(inspect)
_arguments "${_arguments_options[@]}" : \
'--platform=[Validate as this target platform (defaults to current platform)]:PLATFORM:_default' \
'--version-override=[Override package version while inspecting]:VERSION_OVERRIDE:_default' \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .zpa archives]:PKG_DIRS:_files -/' \
'--json[Output the metadata as 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]' \
'--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
;;
(bundle)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(test)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(install)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(doctor)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(init-lsp)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(inspect)
_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 .zpa 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 .zpa 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 .zpa 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 .zpa 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 .zpa 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 .zpa 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 .zpa 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 .zpa 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 .zpa 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
;;
(validate)
_arguments "${_arguments_options[@]}" : \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .zpa 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]' \
':file -- The local file path to validate:_files' \
&& ret=0
;;
(elevate-install-node)
_arguments "${_arguments_options[@]}" : \
'--node-json=[Path to the JSON file containing the serialized InstallNode]:NODE_JSON:_files' \
'--archive=[Path to the package archive (.zpa)]:ARCHIVE:_files' \
'--install-method=[The install method used (e.g. "source", "pre-compiled")]:INSTALL_METHOD:_default' \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .zpa archives]:PKG_DIRS:_files -/' \
'--yes[Automatically answer yes to prompts]' \
'--link-bins[Whether to create shims for binaries]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(elevate-uninstall)
_arguments "${_arguments_options[@]}" : \
'--manifest-json=[Path to the JSON file containing the serialized InstallManifest]:MANIFEST_JSON:_files' \
'--root=[Operate on a different root directory]:ROOT:_files -/' \
'*--pkg-dir=[Additional directory to search for .zpa archives]:PKG_DIRS:_files -/' \
'--yes[Automatically answer yes to prompts]' \
'--offline[Do not attempt to connect to the network]' \
'-h[Print help]' \
'--help[Print help]' \
&& 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
;;
(validate)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(elevate-install-node)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(elevate-uninstall)
_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 .zpa 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 .zpa 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
;;
(complete)
_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
;;
(download)
_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
;;
(use)
_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
;;
(enable)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(disable)
_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
;;
(clone)
_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
;;
(registry)
_arguments "${_arguments_options[@]}" : \
":: :_zoi__subcmd__help__subcmd__registry_commands" \
"*::: :->registry" \
&& ret=0

    case $state in
    (registry)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-help-registry-command-$line[1]:"
        case $line[1] in
            (init)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(generate-metadata)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(check)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(add-package)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(add-advisory)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(home)
_arguments "${_arguments_options[@]}" : \
":: :_zoi__subcmd__help__subcmd__home_commands" \
"*::: :->home" \
&& ret=0

    case $state in
    (home)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-help-home-command-$line[1]:"
        case $line[1] in
            (apply)
_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
;;
(list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(status)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(rollback)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(secret)
_arguments "${_arguments_options[@]}" : \
":: :_zoi__subcmd__help__subcmd__system__subcmd__secret_commands" \
"*::: :->secret" \
&& ret=0

    case $state in
    (secret)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-help-system-secret-command-$line[1]:"
        case $line[1] in
            (hash)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(encrypt)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(decrypt)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(distro)
_arguments "${_arguments_options[@]}" : \
":: :_zoi__subcmd__help__subcmd__system__subcmd__distro_commands" \
"*::: :->distro" \
&& ret=0

    case $state in
    (distro)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:zoi-help-system-distro-command-$line[1]:"
        case $line[1] in
            (build)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(chroot)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        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
;;
(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
;;
(bundle)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(test)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(install)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(doctor)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(init-lsp)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(inspect)
_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
;;
(validate)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(elevate-install-node)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(elevate-uninstall)
_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' \
'complete:Dynamic shell completions (internal use)' \
'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' \
'download:Downloads a package archive or source bundle' \
'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' \
'use:Add a tool to the current project or global configuration and install it' \
'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:Execute a package binary directly with its dependencies resolved' \
'clean:Clears the cache of downloaded package binaries' \
'clone:Clones the git repository of a package' \
'cache:Manage Zoi'\''s local cache' \
'transaction:Inspect recorded transactions' \
'registry:Manage and author Zoi registries' \
'home:Manage declarative user environments (ZoiOS only)' \
'system:Manage the underlying ZoiOS system (ZoiOS only)' \
'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' \
'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__clone_commands] )) ||
_zoi__subcmd__clone_commands() {
    local commands; commands=()
    _describe -t commands 'zoi clone commands' commands "$@"
}
(( $+functions[_zoi__subcmd__complete_commands] )) ||
_zoi__subcmd__complete_commands() {
    local commands; commands=()
    _describe -t commands 'zoi complete 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__download_commands] )) ||
_zoi__subcmd__download_commands() {
    local commands; commands=()
    _describe -t commands 'zoi download 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' \
'complete:Dynamic shell completions (internal use)' \
'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' \
'download:Downloads a package archive or source bundle' \
'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' \
'use:Add a tool to the current project or global configuration and install it' \
'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:Execute a package binary directly with its dependencies resolved' \
'clean:Clears the cache of downloaded package binaries' \
'clone:Clones the git repository of a package' \
'cache:Manage Zoi'\''s local cache' \
'transaction:Inspect recorded transactions' \
'registry:Manage and author Zoi registries' \
'home:Manage declarative user environments (ZoiOS only)' \
'system:Manage the underlying ZoiOS system (ZoiOS only)' \
'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' \
'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__clone_commands] )) ||
_zoi__subcmd__help__subcmd__clone_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help clone commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__complete_commands] )) ||
_zoi__subcmd__help__subcmd__complete_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help complete 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__download_commands] )) ||
_zoi__subcmd__help__subcmd__download_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help download 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' \
'validate:Validate a Zoi specification file (e.g. registries.json, repo.yaml, advisories.json)' \
'elevate-install-node:Internal\: Perform escalated installation of a package node (requires root)' \
'elevate-uninstall:Internal\: Perform escalated uninstallation of a package (requires root)' \
    )
    _describe -t commands 'zoi help helper commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__helper__subcmd__elevate-install-node_commands] )) ||
_zoi__subcmd__help__subcmd__helper__subcmd__elevate-install-node_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help helper elevate-install-node commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__helper__subcmd__elevate-uninstall_commands] )) ||
_zoi__subcmd__help__subcmd__helper__subcmd__elevate-uninstall_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help helper elevate-uninstall 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__helper__subcmd__validate_commands] )) ||
_zoi__subcmd__help__subcmd__helper__subcmd__validate_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help helper validate 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__home_commands] )) ||
_zoi__subcmd__help__subcmd__home_commands() {
    local commands; commands=(
'apply:Apply a declarative user configuration from home.lua' \
    )
    _describe -t commands 'zoi help home commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__home__subcmd__apply_commands] )) ||
_zoi__subcmd__help__subcmd__home__subcmd__apply_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help home apply 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' \
'bundle:Bundle a package and its local assets into a .zsa archive' \
'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' \
'init-lsp:Initialize LSP support for .pkg.lua files' \
'inspect:Inspect a package definition and output metadata' \
    )
    _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__bundle_commands] )) ||
_zoi__subcmd__help__subcmd__package__subcmd__bundle_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help package bundle 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__init-lsp_commands] )) ||
_zoi__subcmd__help__subcmd__package__subcmd__init-lsp_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help package init-lsp commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__package__subcmd__inspect_commands] )) ||
_zoi__subcmd__help__subcmd__package__subcmd__inspect_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help package inspect 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__registry_commands] )) ||
_zoi__subcmd__help__subcmd__registry_commands() {
    local commands; commands=(
'init:Initialize a new Zoi registry' \
'generate-metadata:Generate metadata files (packages.json and advisories.json)' \
'check:Check registry integrity and validate packages' \
'add-package:Add a new package to the registry' \
'add-advisory:Add a new security advisory for a package' \
    )
    _describe -t commands 'zoi help registry commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__registry__subcmd__add-advisory_commands] )) ||
_zoi__subcmd__help__subcmd__registry__subcmd__add-advisory_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help registry add-advisory commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__registry__subcmd__add-package_commands] )) ||
_zoi__subcmd__help__subcmd__registry__subcmd__add-package_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help registry add-package commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__registry__subcmd__check_commands] )) ||
_zoi__subcmd__help__subcmd__registry__subcmd__check_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help registry check commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__registry__subcmd__generate-metadata_commands] )) ||
_zoi__subcmd__help__subcmd__registry__subcmd__generate-metadata_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help registry generate-metadata commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__registry__subcmd__init_commands] )) ||
_zoi__subcmd__help__subcmd__registry__subcmd__init_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help registry init 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' \
'enable:Enable a service (start at boot)' \
'disable:Disable 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__disable_commands] )) ||
_zoi__subcmd__help__subcmd__service__subcmd__disable_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help service disable commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__service__subcmd__enable_commands] )) ||
_zoi__subcmd__help__subcmd__service__subcmd__enable_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help service enable 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 a declarative system configuration from system.lua' \
'list:List all system generations' \
'status:Show current system status and active generation' \
'rollback:Rollback to a previous system generation' \
'secret:Manage secrets (hashes and encrypted strings)' \
'distro:Commands for building and managing ZoiOS distributions' \
    )
    _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__distro_commands] )) ||
_zoi__subcmd__help__subcmd__system__subcmd__distro_commands() {
    local commands; commands=(
'build:Build a new ZoiOS distribution image or install to a disk' \
'chroot:Enter a ZoiOS sysroot (chroot) with automatic device mounting' \
    )
    _describe -t commands 'zoi help system distro commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__system__subcmd__distro__subcmd__build_commands] )) ||
_zoi__subcmd__help__subcmd__system__subcmd__distro__subcmd__build_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help system distro build commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__system__subcmd__distro__subcmd__chroot_commands] )) ||
_zoi__subcmd__help__subcmd__system__subcmd__distro__subcmd__chroot_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help system distro chroot commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__system__subcmd__list_commands] )) ||
_zoi__subcmd__help__subcmd__system__subcmd__list_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help system list commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__system__subcmd__rollback_commands] )) ||
_zoi__subcmd__help__subcmd__system__subcmd__rollback_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help system rollback commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__system__subcmd__secret_commands] )) ||
_zoi__subcmd__help__subcmd__system__subcmd__secret_commands() {
    local commands; commands=(
'hash:Generate a one-way hash of a password for use in system.lua' \
'encrypt:Encrypt a sensitive string (like an API key) so only Zoi can decrypt it' \
'decrypt:Decrypt a ZOISEC string (only works on the same machine where it was encrypted)' \
    )
    _describe -t commands 'zoi help system secret commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__system__subcmd__secret__subcmd__decrypt_commands] )) ||
_zoi__subcmd__help__subcmd__system__subcmd__secret__subcmd__decrypt_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help system secret decrypt commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__system__subcmd__secret__subcmd__encrypt_commands] )) ||
_zoi__subcmd__help__subcmd__system__subcmd__secret__subcmd__encrypt_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help system secret encrypt commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__system__subcmd__secret__subcmd__hash_commands] )) ||
_zoi__subcmd__help__subcmd__system__subcmd__secret__subcmd__hash_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help system secret hash commands' commands "$@"
}
(( $+functions[_zoi__subcmd__help__subcmd__system__subcmd__status_commands] )) ||
_zoi__subcmd__help__subcmd__system__subcmd__status_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help system status 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__use_commands] )) ||
_zoi__subcmd__help__subcmd__use_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help use 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' \
'validate:Validate a Zoi specification file (e.g. registries.json, repo.yaml, advisories.json)' \
'elevate-install-node:Internal\: Perform escalated installation of a package node (requires root)' \
'elevate-uninstall:Internal\: Perform escalated uninstallation of a package (requires root)' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'zoi helper commands' commands "$@"
}
(( $+functions[_zoi__subcmd__helper__subcmd__elevate-install-node_commands] )) ||
_zoi__subcmd__helper__subcmd__elevate-install-node_commands() {
    local commands; commands=()
    _describe -t commands 'zoi helper elevate-install-node commands' commands "$@"
}
(( $+functions[_zoi__subcmd__helper__subcmd__elevate-uninstall_commands] )) ||
_zoi__subcmd__helper__subcmd__elevate-uninstall_commands() {
    local commands; commands=()
    _describe -t commands 'zoi helper elevate-uninstall 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' \
'validate:Validate a Zoi specification file (e.g. registries.json, repo.yaml, advisories.json)' \
'elevate-install-node:Internal\: Perform escalated installation of a package node (requires root)' \
'elevate-uninstall:Internal\: Perform escalated uninstallation of a package (requires root)' \
'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__elevate-install-node_commands] )) ||
_zoi__subcmd__helper__subcmd__help__subcmd__elevate-install-node_commands() {
    local commands; commands=()
    _describe -t commands 'zoi helper help elevate-install-node commands' commands "$@"
}
(( $+functions[_zoi__subcmd__helper__subcmd__help__subcmd__elevate-uninstall_commands] )) ||
_zoi__subcmd__helper__subcmd__help__subcmd__elevate-uninstall_commands() {
    local commands; commands=()
    _describe -t commands 'zoi helper help elevate-uninstall 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__helper__subcmd__help__subcmd__validate_commands] )) ||
_zoi__subcmd__helper__subcmd__help__subcmd__validate_commands() {
    local commands; commands=()
    _describe -t commands 'zoi helper help validate commands' commands "$@"
}
(( $+functions[_zoi__subcmd__helper__subcmd__validate_commands] )) ||
_zoi__subcmd__helper__subcmd__validate_commands() {
    local commands; commands=()
    _describe -t commands 'zoi helper validate commands' commands "$@"
}
(( $+functions[_zoi__subcmd__history_commands] )) ||
_zoi__subcmd__history_commands() {
    local commands; commands=()
    _describe -t commands 'zoi history commands' commands "$@"
}
(( $+functions[_zoi__subcmd__home_commands] )) ||
_zoi__subcmd__home_commands() {
    local commands; commands=(
'apply:Apply a declarative user configuration from home.lua' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'zoi home commands' commands "$@"
}
(( $+functions[_zoi__subcmd__home__subcmd__apply_commands] )) ||
_zoi__subcmd__home__subcmd__apply_commands() {
    local commands; commands=()
    _describe -t commands 'zoi home apply commands' commands "$@"
}
(( $+functions[_zoi__subcmd__home__subcmd__help_commands] )) ||
_zoi__subcmd__home__subcmd__help_commands() {
    local commands; commands=(
'apply:Apply a declarative user configuration from home.lua' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'zoi home help commands' commands "$@"
}
(( $+functions[_zoi__subcmd__home__subcmd__help__subcmd__apply_commands] )) ||
_zoi__subcmd__home__subcmd__help__subcmd__apply_commands() {
    local commands; commands=()
    _describe -t commands 'zoi home help apply commands' commands "$@"
}
(( $+functions[_zoi__subcmd__home__subcmd__help__subcmd__help_commands] )) ||
_zoi__subcmd__home__subcmd__help__subcmd__help_commands() {
    local commands; commands=()
    _describe -t commands 'zoi home help help 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' \
'bundle:Bundle a package and its local assets into a .zsa archive' \
'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' \
'init-lsp:Initialize LSP support for .pkg.lua files' \
'inspect:Inspect a package definition and output metadata' \
'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__bundle_commands] )) ||
_zoi__subcmd__package__subcmd__bundle_commands() {
    local commands; commands=()
    _describe -t commands 'zoi package bundle 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' \
'bundle:Bundle a package and its local assets into a .zsa archive' \
'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' \
'init-lsp:Initialize LSP support for .pkg.lua files' \
'inspect:Inspect a package definition and output metadata' \
'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__bundle_commands] )) ||
_zoi__subcmd__package__subcmd__help__subcmd__bundle_commands() {
    local commands; commands=()
    _describe -t commands 'zoi package help bundle 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__init-lsp_commands] )) ||
_zoi__subcmd__package__subcmd__help__subcmd__init-lsp_commands() {
    local commands; commands=()
    _describe -t commands 'zoi package help init-lsp commands' commands "$@"
}
(( $+functions[_zoi__subcmd__package__subcmd__help__subcmd__inspect_commands] )) ||
_zoi__subcmd__package__subcmd__help__subcmd__inspect_commands() {
    local commands; commands=()
    _describe -t commands 'zoi package help inspect 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__init-lsp_commands] )) ||
_zoi__subcmd__package__subcmd__init-lsp_commands() {
    local commands; commands=()
    _describe -t commands 'zoi package init-lsp commands' commands "$@"
}
(( $+functions[_zoi__subcmd__package__subcmd__inspect_commands] )) ||
_zoi__subcmd__package__subcmd__inspect_commands() {
    local commands; commands=()
    _describe -t commands 'zoi package inspect 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__registry_commands] )) ||
_zoi__subcmd__registry_commands() {
    local commands; commands=(
'init:Initialize a new Zoi registry' \
'generate-metadata:Generate metadata files (packages.json and advisories.json)' \
'check:Check registry integrity and validate packages' \
'add-package:Add a new package to the registry' \
'add-advisory:Add a new security advisory for a package' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'zoi registry commands' commands "$@"
}
(( $+functions[_zoi__subcmd__registry__subcmd__add-advisory_commands] )) ||
_zoi__subcmd__registry__subcmd__add-advisory_commands() {
    local commands; commands=()
    _describe -t commands 'zoi registry add-advisory commands' commands "$@"
}
(( $+functions[_zoi__subcmd__registry__subcmd__add-package_commands] )) ||
_zoi__subcmd__registry__subcmd__add-package_commands() {
    local commands; commands=()
    _describe -t commands 'zoi registry add-package commands' commands "$@"
}
(( $+functions[_zoi__subcmd__registry__subcmd__check_commands] )) ||
_zoi__subcmd__registry__subcmd__check_commands() {
    local commands; commands=()
    _describe -t commands 'zoi registry check commands' commands "$@"
}
(( $+functions[_zoi__subcmd__registry__subcmd__generate-metadata_commands] )) ||
_zoi__subcmd__registry__subcmd__generate-metadata_commands() {
    local commands; commands=()
    _describe -t commands 'zoi registry generate-metadata commands' commands "$@"
}
(( $+functions[_zoi__subcmd__registry__subcmd__help_commands] )) ||
_zoi__subcmd__registry__subcmd__help_commands() {
    local commands; commands=(
'init:Initialize a new Zoi registry' \
'generate-metadata:Generate metadata files (packages.json and advisories.json)' \
'check:Check registry integrity and validate packages' \
'add-package:Add a new package to the registry' \
'add-advisory:Add a new security advisory for a package' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'zoi registry help commands' commands "$@"
}
(( $+functions[_zoi__subcmd__registry__subcmd__help__subcmd__add-advisory_commands] )) ||
_zoi__subcmd__registry__subcmd__help__subcmd__add-advisory_commands() {
    local commands; commands=()
    _describe -t commands 'zoi registry help add-advisory commands' commands "$@"
}
(( $+functions[_zoi__subcmd__registry__subcmd__help__subcmd__add-package_commands] )) ||
_zoi__subcmd__registry__subcmd__help__subcmd__add-package_commands() {
    local commands; commands=()
    _describe -t commands 'zoi registry help add-package commands' commands "$@"
}
(( $+functions[_zoi__subcmd__registry__subcmd__help__subcmd__check_commands] )) ||
_zoi__subcmd__registry__subcmd__help__subcmd__check_commands() {
    local commands; commands=()
    _describe -t commands 'zoi registry help check commands' commands "$@"
}
(( $+functions[_zoi__subcmd__registry__subcmd__help__subcmd__generate-metadata_commands] )) ||
_zoi__subcmd__registry__subcmd__help__subcmd__generate-metadata_commands() {
    local commands; commands=()
    _describe -t commands 'zoi registry help generate-metadata commands' commands "$@"
}
(( $+functions[_zoi__subcmd__registry__subcmd__help__subcmd__help_commands] )) ||
_zoi__subcmd__registry__subcmd__help__subcmd__help_commands() {
    local commands; commands=()
    _describe -t commands 'zoi registry help help commands' commands "$@"
}
(( $+functions[_zoi__subcmd__registry__subcmd__help__subcmd__init_commands] )) ||
_zoi__subcmd__registry__subcmd__help__subcmd__init_commands() {
    local commands; commands=()
    _describe -t commands 'zoi registry help init commands' commands "$@"
}
(( $+functions[_zoi__subcmd__registry__subcmd__init_commands] )) ||
_zoi__subcmd__registry__subcmd__init_commands() {
    local commands; commands=()
    _describe -t commands 'zoi registry init 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' \
'enable:Enable a service (start at boot)' \
'disable:Disable 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__disable_commands] )) ||
_zoi__subcmd__service__subcmd__disable_commands() {
    local commands; commands=()
    _describe -t commands 'zoi service disable commands' commands "$@"
}
(( $+functions[_zoi__subcmd__service__subcmd__enable_commands] )) ||
_zoi__subcmd__service__subcmd__enable_commands() {
    local commands; commands=()
    _describe -t commands 'zoi service enable 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' \
'enable:Enable a service (start at boot)' \
'disable:Disable 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__disable_commands] )) ||
_zoi__subcmd__service__subcmd__help__subcmd__disable_commands() {
    local commands; commands=()
    _describe -t commands 'zoi service help disable commands' commands "$@"
}
(( $+functions[_zoi__subcmd__service__subcmd__help__subcmd__enable_commands] )) ||
_zoi__subcmd__service__subcmd__help__subcmd__enable_commands() {
    local commands; commands=()
    _describe -t commands 'zoi service help enable 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 a declarative system configuration from system.lua' \
'list:List all system generations' \
'status:Show current system status and active generation' \
'rollback:Rollback to a previous system generation' \
'secret:Manage secrets (hashes and encrypted strings)' \
'distro:Commands for building and managing ZoiOS distributions' \
'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__distro_commands] )) ||
_zoi__subcmd__system__subcmd__distro_commands() {
    local commands; commands=(
'build:Build a new ZoiOS distribution image or install to a disk' \
'chroot:Enter a ZoiOS sysroot (chroot) with automatic device mounting' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'zoi system distro commands' commands "$@"
}
(( $+functions[_zoi__subcmd__system__subcmd__distro__subcmd__build_commands] )) ||
_zoi__subcmd__system__subcmd__distro__subcmd__build_commands() {
    local commands; commands=()
    _describe -t commands 'zoi system distro build commands' commands "$@"
}
(( $+functions[_zoi__subcmd__system__subcmd__distro__subcmd__chroot_commands] )) ||
_zoi__subcmd__system__subcmd__distro__subcmd__chroot_commands() {
    local commands; commands=()
    _describe -t commands 'zoi system distro chroot commands' commands "$@"
}
(( $+functions[_zoi__subcmd__system__subcmd__distro__subcmd__help_commands] )) ||
_zoi__subcmd__system__subcmd__distro__subcmd__help_commands() {
    local commands; commands=(
'build:Build a new ZoiOS distribution image or install to a disk' \
'chroot:Enter a ZoiOS sysroot (chroot) with automatic device mounting' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'zoi system distro help commands' commands "$@"
}
(( $+functions[_zoi__subcmd__system__subcmd__distro__subcmd__help__subcmd__build_commands] )) ||
_zoi__subcmd__system__subcmd__distro__subcmd__help__subcmd__build_commands() {
    local commands; commands=()
    _describe -t commands 'zoi system distro help build commands' commands "$@"
}
(( $+functions[_zoi__subcmd__system__subcmd__distro__subcmd__help__subcmd__chroot_commands] )) ||
_zoi__subcmd__system__subcmd__distro__subcmd__help__subcmd__chroot_commands() {
    local commands; commands=()
    _describe -t commands 'zoi system distro help chroot commands' commands "$@"
}
(( $+functions[_zoi__subcmd__system__subcmd__distro__subcmd__help__subcmd__help_commands] )) ||
_zoi__subcmd__system__subcmd__distro__subcmd__help__subcmd__help_commands() {
    local commands; commands=()
    _describe -t commands 'zoi system distro help help commands' commands "$@"
}
(( $+functions[_zoi__subcmd__system__subcmd__help_commands] )) ||
_zoi__subcmd__system__subcmd__help_commands() {
    local commands; commands=(
'apply:Apply a declarative system configuration from system.lua' \
'list:List all system generations' \
'status:Show current system status and active generation' \
'rollback:Rollback to a previous system generation' \
'secret:Manage secrets (hashes and encrypted strings)' \
'distro:Commands for building and managing ZoiOS distributions' \
'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__distro_commands] )) ||
_zoi__subcmd__system__subcmd__help__subcmd__distro_commands() {
    local commands; commands=(
'build:Build a new ZoiOS distribution image or install to a disk' \
'chroot:Enter a ZoiOS sysroot (chroot) with automatic device mounting' \
    )
    _describe -t commands 'zoi system help distro commands' commands "$@"
}
(( $+functions[_zoi__subcmd__system__subcmd__help__subcmd__distro__subcmd__build_commands] )) ||
_zoi__subcmd__system__subcmd__help__subcmd__distro__subcmd__build_commands() {
    local commands; commands=()
    _describe -t commands 'zoi system help distro build commands' commands "$@"
}
(( $+functions[_zoi__subcmd__system__subcmd__help__subcmd__distro__subcmd__chroot_commands] )) ||
_zoi__subcmd__system__subcmd__help__subcmd__distro__subcmd__chroot_commands() {
    local commands; commands=()
    _describe -t commands 'zoi system help distro chroot 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__system__subcmd__help__subcmd__list_commands] )) ||
_zoi__subcmd__system__subcmd__help__subcmd__list_commands() {
    local commands; commands=()
    _describe -t commands 'zoi system help list commands' commands "$@"
}
(( $+functions[_zoi__subcmd__system__subcmd__help__subcmd__rollback_commands] )) ||
_zoi__subcmd__system__subcmd__help__subcmd__rollback_commands() {
    local commands; commands=()
    _describe -t commands 'zoi system help rollback commands' commands "$@"
}
(( $+functions[_zoi__subcmd__system__subcmd__help__subcmd__secret_commands] )) ||
_zoi__subcmd__system__subcmd__help__subcmd__secret_commands() {
    local commands; commands=(
'hash:Generate a one-way hash of a password for use in system.lua' \
'encrypt:Encrypt a sensitive string (like an API key) so only Zoi can decrypt it' \
'decrypt:Decrypt a ZOISEC string (only works on the same machine where it was encrypted)' \
    )
    _describe -t commands 'zoi system help secret commands' commands "$@"
}
(( $+functions[_zoi__subcmd__system__subcmd__help__subcmd__secret__subcmd__decrypt_commands] )) ||
_zoi__subcmd__system__subcmd__help__subcmd__secret__subcmd__decrypt_commands() {
    local commands; commands=()
    _describe -t commands 'zoi system help secret decrypt commands' commands "$@"
}
(( $+functions[_zoi__subcmd__system__subcmd__help__subcmd__secret__subcmd__encrypt_commands] )) ||
_zoi__subcmd__system__subcmd__help__subcmd__secret__subcmd__encrypt_commands() {
    local commands; commands=()
    _describe -t commands 'zoi system help secret encrypt commands' commands "$@"
}
(( $+functions[_zoi__subcmd__system__subcmd__help__subcmd__secret__subcmd__hash_commands] )) ||
_zoi__subcmd__system__subcmd__help__subcmd__secret__subcmd__hash_commands() {
    local commands; commands=()
    _describe -t commands 'zoi system help secret hash commands' commands "$@"
}
(( $+functions[_zoi__subcmd__system__subcmd__help__subcmd__status_commands] )) ||
_zoi__subcmd__system__subcmd__help__subcmd__status_commands() {
    local commands; commands=()
    _describe -t commands 'zoi system help status commands' commands "$@"
}
(( $+functions[_zoi__subcmd__system__subcmd__list_commands] )) ||
_zoi__subcmd__system__subcmd__list_commands() {
    local commands; commands=()
    _describe -t commands 'zoi system list commands' commands "$@"
}
(( $+functions[_zoi__subcmd__system__subcmd__rollback_commands] )) ||
_zoi__subcmd__system__subcmd__rollback_commands() {
    local commands; commands=()
    _describe -t commands 'zoi system rollback commands' commands "$@"
}
(( $+functions[_zoi__subcmd__system__subcmd__secret_commands] )) ||
_zoi__subcmd__system__subcmd__secret_commands() {
    local commands; commands=(
'hash:Generate a one-way hash of a password for use in system.lua' \
'encrypt:Encrypt a sensitive string (like an API key) so only Zoi can decrypt it' \
'decrypt:Decrypt a ZOISEC string (only works on the same machine where it was encrypted)' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'zoi system secret commands' commands "$@"
}
(( $+functions[_zoi__subcmd__system__subcmd__secret__subcmd__decrypt_commands] )) ||
_zoi__subcmd__system__subcmd__secret__subcmd__decrypt_commands() {
    local commands; commands=()
    _describe -t commands 'zoi system secret decrypt commands' commands "$@"
}
(( $+functions[_zoi__subcmd__system__subcmd__secret__subcmd__encrypt_commands] )) ||
_zoi__subcmd__system__subcmd__secret__subcmd__encrypt_commands() {
    local commands; commands=()
    _describe -t commands 'zoi system secret encrypt commands' commands "$@"
}
(( $+functions[_zoi__subcmd__system__subcmd__secret__subcmd__hash_commands] )) ||
_zoi__subcmd__system__subcmd__secret__subcmd__hash_commands() {
    local commands; commands=()
    _describe -t commands 'zoi system secret hash commands' commands "$@"
}
(( $+functions[_zoi__subcmd__system__subcmd__secret__subcmd__help_commands] )) ||
_zoi__subcmd__system__subcmd__secret__subcmd__help_commands() {
    local commands; commands=(
'hash:Generate a one-way hash of a password for use in system.lua' \
'encrypt:Encrypt a sensitive string (like an API key) so only Zoi can decrypt it' \
'decrypt:Decrypt a ZOISEC string (only works on the same machine where it was encrypted)' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'zoi system secret help commands' commands "$@"
}
(( $+functions[_zoi__subcmd__system__subcmd__secret__subcmd__help__subcmd__decrypt_commands] )) ||
_zoi__subcmd__system__subcmd__secret__subcmd__help__subcmd__decrypt_commands() {
    local commands; commands=()
    _describe -t commands 'zoi system secret help decrypt commands' commands "$@"
}
(( $+functions[_zoi__subcmd__system__subcmd__secret__subcmd__help__subcmd__encrypt_commands] )) ||
_zoi__subcmd__system__subcmd__secret__subcmd__help__subcmd__encrypt_commands() {
    local commands; commands=()
    _describe -t commands 'zoi system secret help encrypt commands' commands "$@"
}
(( $+functions[_zoi__subcmd__system__subcmd__secret__subcmd__help__subcmd__hash_commands] )) ||
_zoi__subcmd__system__subcmd__secret__subcmd__help__subcmd__hash_commands() {
    local commands; commands=()
    _describe -t commands 'zoi system secret help hash commands' commands "$@"
}
(( $+functions[_zoi__subcmd__system__subcmd__secret__subcmd__help__subcmd__help_commands] )) ||
_zoi__subcmd__system__subcmd__secret__subcmd__help__subcmd__help_commands() {
    local commands; commands=()
    _describe -t commands 'zoi system secret help help commands' commands "$@"
}
(( $+functions[_zoi__subcmd__system__subcmd__status_commands] )) ||
_zoi__subcmd__system__subcmd__status_commands() {
    local commands; commands=()
    _describe -t commands 'zoi system status 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__use_commands] )) ||
_zoi__subcmd__use_commands() {
    local commands; commands=()
    _describe -t commands 'zoi use 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
