#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[@]}" : \
'-v[Print detailed version information]' \
'--version[Print detailed version information]' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'-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[@]}" : \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'-h[Print help]' \
'--help[Print help]' \
':shell -- The shell to generate completions for:(bash elvish fish powershell zsh)' \
&& ret=0
;;
(version)
_arguments "${_arguments_options[@]}" : \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(about)
_arguments "${_arguments_options[@]}" : \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(info)
_arguments "${_arguments_options[@]}" : \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(check)
_arguments "${_arguments_options[@]}" : \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(sync)
_arguments "${_arguments_options[@]}" : \
'-v[Show the full git output]' \
'--verbose[Show the full git output]' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_zoi__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
            (set)
_arguments "${_arguments_options[@]}" : \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'-h[Print help]' \
'--help[Print help]' \
':url -- URL or keyword (default, github, gitlab, codeberg):_default' \
&& ret=0
;;
(show)
_arguments "${_arguments_options[@]}" : \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_zoi__sync__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
            (set)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(show)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(list)
_arguments "${_arguments_options[@]}" : \
'--repo=[Filter by repository (e.g. '\''main'\'', '\''extra'\'')]:REPO:_default' \
'-t+[Filter by package type (package, service, config, collection, extension, library)]:PACKAGE_TYPE:_default' \
'--type=[Filter by package type (package, service, config, collection, extension, library)]:PACKAGE_TYPE:_default' \
'-a[List all packages from the database, not just installed ones]' \
'--all[List all packages from the database, not just installed ones]' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(show)
_arguments "${_arguments_options[@]}" : \
'--raw[Display the raw, unformatted package file]' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'-h[Print help]' \
'--help[Print help]' \
':package_name -- The name of the package to show:_default' \
&& ret=0
;;
(pin)
_arguments "${_arguments_options[@]}" : \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'-h[Print help]' \
'--help[Print help]' \
':package -- The name of the package to pin:_default' \
':version -- The version to pin the package to:_default' \
&& ret=0
;;
(unpin)
_arguments "${_arguments_options[@]}" : \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'-h[Print help]' \
'--help[Print help]' \
':package -- The name of the package to unpin:_default' \
&& ret=0
;;
(update)
_arguments "${_arguments_options[@]}" : \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'-h[Print help]' \
'--help[Print help]' \
'*::package_names -- The name(s) of the package(s) to update. Use '\''all'\'' to update all installed packages:_default' \
&& ret=0
;;
(install)
_arguments "${_arguments_options[@]}" : \
'--force[Force re-installation even if the package is already installed]' \
'-i[Run in interactive mode]' \
'--interactive[Run in interactive mode]' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'-h[Print help]' \
'--help[Print help]' \
'*::sources -- Package names, local paths, or URLs to .pkg.yaml files:_files' \
&& ret=0
;;
(build)
_arguments "${_arguments_options[@]}" : \
'--force[Force re-installation even if the package is already installed]' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'*::sources -- Package names, local paths, or URLs to .pkg.yaml files:_files' \
&& ret=0
;;
(uninstall)
_arguments "${_arguments_options[@]}" : \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'*::packages -- One or more packages to uninstall:_default' \
&& ret=0
;;
(run)
_arguments "${_arguments_options[@]}" : \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'-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[@]}" : \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'-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
;;
(clone)
_arguments "${_arguments_options[@]}" : \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'*::sources -- Package names, local paths, or URLs to resolve the git repo from:_files' \
&& 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' \
'--full[Force a full download, skipping the patch-based upgrade]' \
'--force[Force the upgrade even if the version is the same]' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(autoremove)
_arguments "${_arguments_options[@]}" : \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(why)
_arguments "${_arguments_options[@]}" : \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'-h[Print help]' \
'--help[Print help]' \
':package_name -- The name of the package to inspect:_default' \
&& ret=0
;;
(search)
_arguments "${_arguments_options[@]}" : \
'--repo=[Filter by repository (e.g. '\''main'\'', '\''extra'\'')]:REPO:_default' \
'--type=[Filter by package type (package, service, config, collection, extension, library)]: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' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'-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
;;
(shell)
_arguments "${_arguments_options[@]}" : \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'-h[Print help]' \
'--help[Print help]' \
':shell -- The shell to install completions for:(bash elvish fish powershell zsh)' \
&& ret=0
;;
(setup)
_arguments "${_arguments_options[@]}" : \
'--scope=[The scope to apply the setup to (user or system-wide)]:SCOPE:(user system)' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(exec)
_arguments "${_arguments_options[@]}" : \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':source -- Package name, local path, or URL to execute:_default' \
'*::args -- Arguments to pass to the executed command:_default' \
&& ret=0
;;
(clean)
_arguments "${_arguments_options[@]}" : \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(repo)
_arguments "${_arguments_options[@]}" : \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_zoi__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[@]}" : \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'-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[@]}" : \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'-h[Print help]' \
'--help[Print help]' \
':repo_name:_default' \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" : \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'-h[Print help]' \
'--help[Print help]' \
":: :_zoi__repo__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[@]}" : \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_zoi__repo__list__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[@]}" : \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'-h[Print help]' \
'--help[Print help]' \
":: :_zoi__repo__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[@]}" : \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(rm)
_arguments "${_arguments_options[@]}" : \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'-h[Print help]' \
'--help[Print help]' \
':repo_name:_default' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_zoi__repo__git__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__repo__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__repo__help__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__repo__help__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
;;
(start)
_arguments "${_arguments_options[@]}" : \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'-h[Print help]' \
'--help[Print help]' \
':package -- The name of the service to start:_default' \
&& ret=0
;;
(stop)
_arguments "${_arguments_options[@]}" : \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'-h[Print help]' \
'--help[Print help]' \
':package -- The name of the service to stop:_default' \
&& ret=0
;;
(telemetry)
_arguments "${_arguments_options[@]}" : \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':action:(status enable disable)' \
&& ret=0
;;
(create)
_arguments "${_arguments_options[@]}" : \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'-h[Print help]' \
'--help[Print help]' \
':source -- Package name, @repo/name, local .pkg.yaml path, or URL:_default' \
':app_name -- The application name to substitute into template commands:_default' \
&& ret=0
;;
(make)
_arguments "${_arguments_options[@]}" : \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::package_name -- The name of the package to create a file for:_default' \
&& ret=0
;;
(extension)
_arguments "${_arguments_options[@]}" : \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'-h[Print help]' \
'--help[Print help]' \
":: :_zoi__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[@]}" : \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'-h[Print help]' \
'--help[Print help]' \
':name -- The name of the extension to add:_default' \
&& ret=0
;;
(remove)
_arguments "${_arguments_options[@]}" : \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'-h[Print help]' \
'--help[Print help]' \
':name -- The name of the extension to remove:_default' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_zoi__extension__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[@]}" : \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'-h[Print help]' \
'--help[Print help]' \
':package -- The name of the package to rollback:_default' \
&& ret=0
;;
(pkg-config)
_arguments "${_arguments_options[@]}" : \
'--libs[Print library linking information]' \
'--cflags[Print C compiler flags]' \
'-y[Automatically answer yes to all prompts]' \
'--yes[Automatically answer yes to all prompts]' \
'-h[Print help]' \
'--help[Print help]' \
'*::packages -- The package to query:_default' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_zoi__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
;;
(version)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(about)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(info)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(check)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(sync)
_arguments "${_arguments_options[@]}" : \
":: :_zoi__help__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
            (set)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(show)
_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
;;
(unpin)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(update)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(install)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(build)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(uninstall)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(run)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(env)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(clone)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(upgrade)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(autoremove)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(why)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(search)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(shell)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(setup)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(exec)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(clean)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(repo)
_arguments "${_arguments_options[@]}" : \
":: :_zoi__help__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__help__repo__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__help__repo__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
;;
(start)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(stop)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(telemetry)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(create)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(make)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(extension)
_arguments "${_arguments_options[@]}" : \
":: :_zoi__help__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
;;
(pkg-config)
_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' \
'version:Prints concise version and build information' \
'about:Shows detailed application information and credits' \
'info:Displays detected operating system and architecture information' \
'check:Checks for essential third-party command-line tools' \
'sync:Downloads or updates the package database from the remote repository' \
'list:Lists installed or all available packages' \
'show:Shows detailed information about a package' \
'pin:Pin a package to a specific version' \
'unpin:Unpin a package, allowing it to be updated' \
'update:Updates one or more packages to their latest versions' \
'install:Installs one or more packages from a name, local file, or URL' \
'build:Builds and installs one or more packages from a name, local file, or URL' \
'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' \
'clone:Clones the source code repository of one or more packages' \
'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' \
'search:Searches for packages by name or description' \
'shell:Installs completion scripts for a given shell' \
'setup:Configures the shell environment for Zoi' \
'exec:Download and execute a binary package without installing it' \
'clean:Clears the cache of downloaded package binaries' \
'repo:Manage package repositories' \
'start:Starts a service' \
'stop:Stops a service' \
'telemetry:Manage telemetry settings (opt-in analytics)' \
'create:Create an application using a package template' \
'make:Create a new package file interactively' \
'extension:Manage Zoi extensions' \
'rollback:Rollback a package to the previously installed version' \
'pkg-config:Provides pkg-config compatible information for installed libraries' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'zoi commands' commands "$@"
}
(( $+functions[_zoi__about_commands] )) ||
_zoi__about_commands() {
    local commands; commands=()
    _describe -t commands 'zoi about commands' commands "$@"
}
(( $+functions[_zoi__autoremove_commands] )) ||
_zoi__autoremove_commands() {
    local commands; commands=()
    _describe -t commands 'zoi autoremove commands' commands "$@"
}
(( $+functions[_zoi__build_commands] )) ||
_zoi__build_commands() {
    local commands; commands=()
    _describe -t commands 'zoi build commands' commands "$@"
}
(( $+functions[_zoi__check_commands] )) ||
_zoi__check_commands() {
    local commands; commands=()
    _describe -t commands 'zoi check commands' commands "$@"
}
(( $+functions[_zoi__clean_commands] )) ||
_zoi__clean_commands() {
    local commands; commands=()
    _describe -t commands 'zoi clean commands' commands "$@"
}
(( $+functions[_zoi__clone_commands] )) ||
_zoi__clone_commands() {
    local commands; commands=()
    _describe -t commands 'zoi clone commands' commands "$@"
}
(( $+functions[_zoi__create_commands] )) ||
_zoi__create_commands() {
    local commands; commands=()
    _describe -t commands 'zoi create commands' commands "$@"
}
(( $+functions[_zoi__env_commands] )) ||
_zoi__env_commands() {
    local commands; commands=()
    _describe -t commands 'zoi env commands' commands "$@"
}
(( $+functions[_zoi__exec_commands] )) ||
_zoi__exec_commands() {
    local commands; commands=()
    _describe -t commands 'zoi exec commands' commands "$@"
}
(( $+functions[_zoi__extension_commands] )) ||
_zoi__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__extension__add_commands] )) ||
_zoi__extension__add_commands() {
    local commands; commands=()
    _describe -t commands 'zoi extension add commands' commands "$@"
}
(( $+functions[_zoi__extension__help_commands] )) ||
_zoi__extension__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__extension__help__add_commands] )) ||
_zoi__extension__help__add_commands() {
    local commands; commands=()
    _describe -t commands 'zoi extension help add commands' commands "$@"
}
(( $+functions[_zoi__extension__help__help_commands] )) ||
_zoi__extension__help__help_commands() {
    local commands; commands=()
    _describe -t commands 'zoi extension help help commands' commands "$@"
}
(( $+functions[_zoi__extension__help__remove_commands] )) ||
_zoi__extension__help__remove_commands() {
    local commands; commands=()
    _describe -t commands 'zoi extension help remove commands' commands "$@"
}
(( $+functions[_zoi__extension__remove_commands] )) ||
_zoi__extension__remove_commands() {
    local commands; commands=()
    _describe -t commands 'zoi extension remove commands' commands "$@"
}
(( $+functions[_zoi__generate-completions_commands] )) ||
_zoi__generate-completions_commands() {
    local commands; commands=()
    _describe -t commands 'zoi generate-completions commands' commands "$@"
}
(( $+functions[_zoi__help_commands] )) ||
_zoi__help_commands() {
    local commands; commands=(
'generate-completions:Generates shell completion scripts' \
'version:Prints concise version and build information' \
'about:Shows detailed application information and credits' \
'info:Displays detected operating system and architecture information' \
'check:Checks for essential third-party command-line tools' \
'sync:Downloads or updates the package database from the remote repository' \
'list:Lists installed or all available packages' \
'show:Shows detailed information about a package' \
'pin:Pin a package to a specific version' \
'unpin:Unpin a package, allowing it to be updated' \
'update:Updates one or more packages to their latest versions' \
'install:Installs one or more packages from a name, local file, or URL' \
'build:Builds and installs one or more packages from a name, local file, or URL' \
'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' \
'clone:Clones the source code repository of one or more packages' \
'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' \
'search:Searches for packages by name or description' \
'shell:Installs completion scripts for a given shell' \
'setup:Configures the shell environment for Zoi' \
'exec:Download and execute a binary package without installing it' \
'clean:Clears the cache of downloaded package binaries' \
'repo:Manage package repositories' \
'start:Starts a service' \
'stop:Stops a service' \
'telemetry:Manage telemetry settings (opt-in analytics)' \
'create:Create an application using a package template' \
'make:Create a new package file interactively' \
'extension:Manage Zoi extensions' \
'rollback:Rollback a package to the previously installed version' \
'pkg-config:Provides pkg-config compatible information for installed libraries' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'zoi help commands' commands "$@"
}
(( $+functions[_zoi__help__about_commands] )) ||
_zoi__help__about_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help about commands' commands "$@"
}
(( $+functions[_zoi__help__autoremove_commands] )) ||
_zoi__help__autoremove_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help autoremove commands' commands "$@"
}
(( $+functions[_zoi__help__build_commands] )) ||
_zoi__help__build_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help build commands' commands "$@"
}
(( $+functions[_zoi__help__check_commands] )) ||
_zoi__help__check_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help check commands' commands "$@"
}
(( $+functions[_zoi__help__clean_commands] )) ||
_zoi__help__clean_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help clean commands' commands "$@"
}
(( $+functions[_zoi__help__clone_commands] )) ||
_zoi__help__clone_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help clone commands' commands "$@"
}
(( $+functions[_zoi__help__create_commands] )) ||
_zoi__help__create_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help create commands' commands "$@"
}
(( $+functions[_zoi__help__env_commands] )) ||
_zoi__help__env_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help env commands' commands "$@"
}
(( $+functions[_zoi__help__exec_commands] )) ||
_zoi__help__exec_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help exec commands' commands "$@"
}
(( $+functions[_zoi__help__extension_commands] )) ||
_zoi__help__extension_commands() {
    local commands; commands=(
'add:Add an extension' \
'remove:Remove an extension' \
    )
    _describe -t commands 'zoi help extension commands' commands "$@"
}
(( $+functions[_zoi__help__extension__add_commands] )) ||
_zoi__help__extension__add_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help extension add commands' commands "$@"
}
(( $+functions[_zoi__help__extension__remove_commands] )) ||
_zoi__help__extension__remove_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help extension remove commands' commands "$@"
}
(( $+functions[_zoi__help__generate-completions_commands] )) ||
_zoi__help__generate-completions_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help generate-completions commands' commands "$@"
}
(( $+functions[_zoi__help__help_commands] )) ||
_zoi__help__help_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help help commands' commands "$@"
}
(( $+functions[_zoi__help__info_commands] )) ||
_zoi__help__info_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help info commands' commands "$@"
}
(( $+functions[_zoi__help__install_commands] )) ||
_zoi__help__install_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help install commands' commands "$@"
}
(( $+functions[_zoi__help__list_commands] )) ||
_zoi__help__list_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help list commands' commands "$@"
}
(( $+functions[_zoi__help__make_commands] )) ||
_zoi__help__make_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help make commands' commands "$@"
}
(( $+functions[_zoi__help__pin_commands] )) ||
_zoi__help__pin_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help pin commands' commands "$@"
}
(( $+functions[_zoi__help__pkg-config_commands] )) ||
_zoi__help__pkg-config_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help pkg-config commands' commands "$@"
}
(( $+functions[_zoi__help__repo_commands] )) ||
_zoi__help__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__help__repo__add_commands] )) ||
_zoi__help__repo__add_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help repo add commands' commands "$@"
}
(( $+functions[_zoi__help__repo__git_commands] )) ||
_zoi__help__repo__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__help__repo__git__list_commands] )) ||
_zoi__help__repo__git__list_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help repo git list commands' commands "$@"
}
(( $+functions[_zoi__help__repo__git__rm_commands] )) ||
_zoi__help__repo__git__rm_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help repo git rm commands' commands "$@"
}
(( $+functions[_zoi__help__repo__list_commands] )) ||
_zoi__help__repo__list_commands() {
    local commands; commands=(
'all:Show all available repositories (active + discovered)' \
    )
    _describe -t commands 'zoi help repo list commands' commands "$@"
}
(( $+functions[_zoi__help__repo__list__all_commands] )) ||
_zoi__help__repo__list__all_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help repo list all commands' commands "$@"
}
(( $+functions[_zoi__help__repo__remove_commands] )) ||
_zoi__help__repo__remove_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help repo remove commands' commands "$@"
}
(( $+functions[_zoi__help__rollback_commands] )) ||
_zoi__help__rollback_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help rollback commands' commands "$@"
}
(( $+functions[_zoi__help__run_commands] )) ||
_zoi__help__run_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help run commands' commands "$@"
}
(( $+functions[_zoi__help__search_commands] )) ||
_zoi__help__search_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help search commands' commands "$@"
}
(( $+functions[_zoi__help__setup_commands] )) ||
_zoi__help__setup_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help setup commands' commands "$@"
}
(( $+functions[_zoi__help__shell_commands] )) ||
_zoi__help__shell_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help shell commands' commands "$@"
}
(( $+functions[_zoi__help__show_commands] )) ||
_zoi__help__show_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help show commands' commands "$@"
}
(( $+functions[_zoi__help__start_commands] )) ||
_zoi__help__start_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help start commands' commands "$@"
}
(( $+functions[_zoi__help__stop_commands] )) ||
_zoi__help__stop_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help stop commands' commands "$@"
}
(( $+functions[_zoi__help__sync_commands] )) ||
_zoi__help__sync_commands() {
    local commands; commands=(
'set:Set the registry URL' \
'show:Show the current registry URL' \
    )
    _describe -t commands 'zoi help sync commands' commands "$@"
}
(( $+functions[_zoi__help__sync__set_commands] )) ||
_zoi__help__sync__set_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help sync set commands' commands "$@"
}
(( $+functions[_zoi__help__sync__show_commands] )) ||
_zoi__help__sync__show_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help sync show commands' commands "$@"
}
(( $+functions[_zoi__help__telemetry_commands] )) ||
_zoi__help__telemetry_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help telemetry commands' commands "$@"
}
(( $+functions[_zoi__help__uninstall_commands] )) ||
_zoi__help__uninstall_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help uninstall commands' commands "$@"
}
(( $+functions[_zoi__help__unpin_commands] )) ||
_zoi__help__unpin_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help unpin commands' commands "$@"
}
(( $+functions[_zoi__help__update_commands] )) ||
_zoi__help__update_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help update commands' commands "$@"
}
(( $+functions[_zoi__help__upgrade_commands] )) ||
_zoi__help__upgrade_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help upgrade commands' commands "$@"
}
(( $+functions[_zoi__help__version_commands] )) ||
_zoi__help__version_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help version commands' commands "$@"
}
(( $+functions[_zoi__help__why_commands] )) ||
_zoi__help__why_commands() {
    local commands; commands=()
    _describe -t commands 'zoi help why commands' commands "$@"
}
(( $+functions[_zoi__info_commands] )) ||
_zoi__info_commands() {
    local commands; commands=()
    _describe -t commands 'zoi info commands' commands "$@"
}
(( $+functions[_zoi__install_commands] )) ||
_zoi__install_commands() {
    local commands; commands=()
    _describe -t commands 'zoi install commands' commands "$@"
}
(( $+functions[_zoi__list_commands] )) ||
_zoi__list_commands() {
    local commands; commands=()
    _describe -t commands 'zoi list commands' commands "$@"
}
(( $+functions[_zoi__make_commands] )) ||
_zoi__make_commands() {
    local commands; commands=()
    _describe -t commands 'zoi make commands' commands "$@"
}
(( $+functions[_zoi__pin_commands] )) ||
_zoi__pin_commands() {
    local commands; commands=()
    _describe -t commands 'zoi pin commands' commands "$@"
}
(( $+functions[_zoi__pkg-config_commands] )) ||
_zoi__pkg-config_commands() {
    local commands; commands=()
    _describe -t commands 'zoi pkg-config commands' commands "$@"
}
(( $+functions[_zoi__repo_commands] )) ||
_zoi__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__repo__add_commands] )) ||
_zoi__repo__add_commands() {
    local commands; commands=()
    _describe -t commands 'zoi repo add commands' commands "$@"
}
(( $+functions[_zoi__repo__git_commands] )) ||
_zoi__repo__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__repo__git__help_commands] )) ||
_zoi__repo__git__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__repo__git__help__help_commands] )) ||
_zoi__repo__git__help__help_commands() {
    local commands; commands=()
    _describe -t commands 'zoi repo git help help commands' commands "$@"
}
(( $+functions[_zoi__repo__git__help__list_commands] )) ||
_zoi__repo__git__help__list_commands() {
    local commands; commands=()
    _describe -t commands 'zoi repo git help list commands' commands "$@"
}
(( $+functions[_zoi__repo__git__help__rm_commands] )) ||
_zoi__repo__git__help__rm_commands() {
    local commands; commands=()
    _describe -t commands 'zoi repo git help rm commands' commands "$@"
}
(( $+functions[_zoi__repo__git__list_commands] )) ||
_zoi__repo__git__list_commands() {
    local commands; commands=()
    _describe -t commands 'zoi repo git list commands' commands "$@"
}
(( $+functions[_zoi__repo__git__rm_commands] )) ||
_zoi__repo__git__rm_commands() {
    local commands; commands=()
    _describe -t commands 'zoi repo git rm commands' commands "$@"
}
(( $+functions[_zoi__repo__help_commands] )) ||
_zoi__repo__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__repo__help__add_commands] )) ||
_zoi__repo__help__add_commands() {
    local commands; commands=()
    _describe -t commands 'zoi repo help add commands' commands "$@"
}
(( $+functions[_zoi__repo__help__git_commands] )) ||
_zoi__repo__help__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__repo__help__git__list_commands] )) ||
_zoi__repo__help__git__list_commands() {
    local commands; commands=()
    _describe -t commands 'zoi repo help git list commands' commands "$@"
}
(( $+functions[_zoi__repo__help__git__rm_commands] )) ||
_zoi__repo__help__git__rm_commands() {
    local commands; commands=()
    _describe -t commands 'zoi repo help git rm commands' commands "$@"
}
(( $+functions[_zoi__repo__help__help_commands] )) ||
_zoi__repo__help__help_commands() {
    local commands; commands=()
    _describe -t commands 'zoi repo help help commands' commands "$@"
}
(( $+functions[_zoi__repo__help__list_commands] )) ||
_zoi__repo__help__list_commands() {
    local commands; commands=(
'all:Show all available repositories (active + discovered)' \
    )
    _describe -t commands 'zoi repo help list commands' commands "$@"
}
(( $+functions[_zoi__repo__help__list__all_commands] )) ||
_zoi__repo__help__list__all_commands() {
    local commands; commands=()
    _describe -t commands 'zoi repo help list all commands' commands "$@"
}
(( $+functions[_zoi__repo__help__remove_commands] )) ||
_zoi__repo__help__remove_commands() {
    local commands; commands=()
    _describe -t commands 'zoi repo help remove commands' commands "$@"
}
(( $+functions[_zoi__repo__list_commands] )) ||
_zoi__repo__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__repo__list__all_commands] )) ||
_zoi__repo__list__all_commands() {
    local commands; commands=()
    _describe -t commands 'zoi repo list all commands' commands "$@"
}
(( $+functions[_zoi__repo__list__help_commands] )) ||
_zoi__repo__list__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__repo__list__help__all_commands] )) ||
_zoi__repo__list__help__all_commands() {
    local commands; commands=()
    _describe -t commands 'zoi repo list help all commands' commands "$@"
}
(( $+functions[_zoi__repo__list__help__help_commands] )) ||
_zoi__repo__list__help__help_commands() {
    local commands; commands=()
    _describe -t commands 'zoi repo list help help commands' commands "$@"
}
(( $+functions[_zoi__repo__remove_commands] )) ||
_zoi__repo__remove_commands() {
    local commands; commands=()
    _describe -t commands 'zoi repo remove commands' commands "$@"
}
(( $+functions[_zoi__rollback_commands] )) ||
_zoi__rollback_commands() {
    local commands; commands=()
    _describe -t commands 'zoi rollback commands' commands "$@"
}
(( $+functions[_zoi__run_commands] )) ||
_zoi__run_commands() {
    local commands; commands=()
    _describe -t commands 'zoi run commands' commands "$@"
}
(( $+functions[_zoi__search_commands] )) ||
_zoi__search_commands() {
    local commands; commands=()
    _describe -t commands 'zoi search commands' commands "$@"
}
(( $+functions[_zoi__setup_commands] )) ||
_zoi__setup_commands() {
    local commands; commands=()
    _describe -t commands 'zoi setup commands' commands "$@"
}
(( $+functions[_zoi__shell_commands] )) ||
_zoi__shell_commands() {
    local commands; commands=()
    _describe -t commands 'zoi shell commands' commands "$@"
}
(( $+functions[_zoi__show_commands] )) ||
_zoi__show_commands() {
    local commands; commands=()
    _describe -t commands 'zoi show commands' commands "$@"
}
(( $+functions[_zoi__start_commands] )) ||
_zoi__start_commands() {
    local commands; commands=()
    _describe -t commands 'zoi start commands' commands "$@"
}
(( $+functions[_zoi__stop_commands] )) ||
_zoi__stop_commands() {
    local commands; commands=()
    _describe -t commands 'zoi stop commands' commands "$@"
}
(( $+functions[_zoi__sync_commands] )) ||
_zoi__sync_commands() {
    local commands; commands=(
'set:Set the registry URL' \
'show:Show the current registry URL' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'zoi sync commands' commands "$@"
}
(( $+functions[_zoi__sync__help_commands] )) ||
_zoi__sync__help_commands() {
    local commands; commands=(
'set:Set the registry URL' \
'show:Show the current registry URL' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'zoi sync help commands' commands "$@"
}
(( $+functions[_zoi__sync__help__help_commands] )) ||
_zoi__sync__help__help_commands() {
    local commands; commands=()
    _describe -t commands 'zoi sync help help commands' commands "$@"
}
(( $+functions[_zoi__sync__help__set_commands] )) ||
_zoi__sync__help__set_commands() {
    local commands; commands=()
    _describe -t commands 'zoi sync help set commands' commands "$@"
}
(( $+functions[_zoi__sync__help__show_commands] )) ||
_zoi__sync__help__show_commands() {
    local commands; commands=()
    _describe -t commands 'zoi sync help show commands' commands "$@"
}
(( $+functions[_zoi__sync__set_commands] )) ||
_zoi__sync__set_commands() {
    local commands; commands=()
    _describe -t commands 'zoi sync set commands' commands "$@"
}
(( $+functions[_zoi__sync__show_commands] )) ||
_zoi__sync__show_commands() {
    local commands; commands=()
    _describe -t commands 'zoi sync show commands' commands "$@"
}
(( $+functions[_zoi__telemetry_commands] )) ||
_zoi__telemetry_commands() {
    local commands; commands=()
    _describe -t commands 'zoi telemetry commands' commands "$@"
}
(( $+functions[_zoi__uninstall_commands] )) ||
_zoi__uninstall_commands() {
    local commands; commands=()
    _describe -t commands 'zoi uninstall commands' commands "$@"
}
(( $+functions[_zoi__unpin_commands] )) ||
_zoi__unpin_commands() {
    local commands; commands=()
    _describe -t commands 'zoi unpin commands' commands "$@"
}
(( $+functions[_zoi__update_commands] )) ||
_zoi__update_commands() {
    local commands; commands=()
    _describe -t commands 'zoi update commands' commands "$@"
}
(( $+functions[_zoi__upgrade_commands] )) ||
_zoi__upgrade_commands() {
    local commands; commands=()
    _describe -t commands 'zoi upgrade commands' commands "$@"
}
(( $+functions[_zoi__version_commands] )) ||
_zoi__version_commands() {
    local commands; commands=()
    _describe -t commands 'zoi version commands' commands "$@"
}
(( $+functions[_zoi__why_commands] )) ||
_zoi__why_commands() {
    local commands; commands=()
    _describe -t commands 'zoi why commands' commands "$@"
}

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