#compdef rattler-build

autoload -U is-at-least

_rattler-build() {
    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[@]}" \
'--log-style=[Logging style]:LOG_STYLE:((fancy\:"Use fancy logging output"
json\:"Use JSON logging output"
plain\:"Use plain logging output"))' \
'--color=[Enable or disable colored output from rattler-build. Also honors the \`CLICOLOR\` and \`CLICOLOR_FORCE\` environment variable]:COLOR:((always\:"Always use colors"
never\:"Never use colors"
auto\:"Use colors when the output is a terminal"))' \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'-V[Print version]' \
'--version[Print version]' \
":: :_rattler-build_commands" \
"*::: :->rattler-build" \
&& ret=0
    case $state in
    (rattler-build)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:rattler-build-command-$line[1]:"
        case $line[1] in
            (build)
_arguments "${_arguments_options[@]}" \
'*-r+[The recipe file or directory containing \`recipe.yaml\`. Defaults to the current directory]:RECIPE:_files' \
'*--recipe=[The recipe file or directory containing \`recipe.yaml\`. Defaults to the current directory]:RECIPE:_files' \
'--recipe-dir=[The directory that contains recipes]:RECIPE_DIR:_files' \
'--up-to=[Build recipes up to the specified package]:UP_TO: ' \
'--build-platform=[The build platform to use for the build (e.g. for building with emulation, or rendering)]:BUILD_PLATFORM: ' \
'--target-platform=[The target platform for the build]:TARGET_PLATFORM: ' \
'*-c+[Add the channels needed for the recipe using this option. For more then one channel use it multiple times. The default channel is \`conda-forge\`]:CHANNEL: ' \
'*--channel=[Add the channels needed for the recipe using this option. For more then one channel use it multiple times. The default channel is \`conda-forge\`]:CHANNEL: ' \
'*-m+[Variant configuration files for the build]:VARIANT_CONFIG:_files' \
'*--variant-config=[Variant configuration files for the build]:VARIANT_CONFIG:_files' \
'--package-format=[The package format to use for the build. Can be one of \`tar-bz2\` or \`conda\`. You can also add a compression level to the package format, e.g. \`tar-bz2\:<number>\` (from 1 to 9) or \`conda\:<number>\` (from -7 to 22)]:PACKAGE_FORMAT: ' \
'--compression-threads=[The number of threads to use for compression (only relevant when also using \`--package-format conda\`)]:COMPRESSION_THREADS: ' \
'--output-dir=[Output directory for build artifacts. Defaults to \`./output\`]:OUTPUT_DIR:_files' \
'--auth-file=[Path to an auth-file to read authentication information from]:AUTH_FILE:_files' \
'--skip-existing=[Wether to skip packages that already exist in any channel]' \
'--log-style=[Logging style]:LOG_STYLE:((fancy\:"Use fancy logging output"
json\:"Use JSON logging output"
plain\:"Use plain logging output"))' \
'--color=[Enable or disable colored output from rattler-build. Also honors the \`CLICOLOR\` and \`CLICOLOR_FORCE\` environment variable]:COLOR:((always\:"Always use colors"
never\:"Never use colors"
auto\:"Use colors when the output is a terminal"))' \
'--render-only[Render the recipe files without executing the build]' \
'--with-solve[Render the recipe files with solving requirements]' \
'--keep-build[Keep intermediate build artifacts after the build]' \
'--no-build-id[Don'\''t use build id(timestamp) when creating build directory name. Defaults to \`false\`]' \
'--no-include-recipe[Do not store the recipe in the final package]' \
'--no-test[Do not run tests after building]' \
'--color-build-log[Do not force colors in the output of the build script]' \
'--use-zstd[Enable support for repodata.json.zst]' \
'--use-bz2[Enable support for repodata.json.bz2]' \
'--experimental[Enable experimental features]' \
'--tui[Launch the terminal user interface]' \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(test)
_arguments "${_arguments_options[@]}" \
'*-c+[Channels to use when testing]:CHANNEL: ' \
'*--channel=[Channels to use when testing]:CHANNEL: ' \
'-p+[The package file to test]:PACKAGE_FILE:_files' \
'--package-file=[The package file to test]:PACKAGE_FILE:_files' \
'--output-dir=[Output directory for build artifacts. Defaults to \`./output\`]:OUTPUT_DIR:_files' \
'--auth-file=[Path to an auth-file to read authentication information from]:AUTH_FILE:_files' \
'--log-style=[Logging style]:LOG_STYLE:((fancy\:"Use fancy logging output"
json\:"Use JSON logging output"
plain\:"Use plain logging output"))' \
'--color=[Enable or disable colored output from rattler-build. Also honors the \`CLICOLOR\` and \`CLICOLOR_FORCE\` environment variable]:COLOR:((always\:"Always use colors"
never\:"Never use colors"
auto\:"Use colors when the output is a terminal"))' \
'--use-zstd[Enable support for repodata.json.zst]' \
'--use-bz2[Enable support for repodata.json.bz2]' \
'--experimental[Enable experimental features]' \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(rebuild)
_arguments "${_arguments_options[@]}" \
'-p+[The package file to rebuild]:PACKAGE_FILE:_files' \
'--package-file=[The package file to rebuild]:PACKAGE_FILE:_files' \
'--output-dir=[Output directory for build artifacts. Defaults to \`./output\`]:OUTPUT_DIR:_files' \
'--auth-file=[Path to an auth-file to read authentication information from]:AUTH_FILE:_files' \
'--log-style=[Logging style]:LOG_STYLE:((fancy\:"Use fancy logging output"
json\:"Use JSON logging output"
plain\:"Use plain logging output"))' \
'--color=[Enable or disable colored output from rattler-build. Also honors the \`CLICOLOR\` and \`CLICOLOR_FORCE\` environment variable]:COLOR:((always\:"Always use colors"
never\:"Never use colors"
auto\:"Use colors when the output is a terminal"))' \
'--no-test[Do not run tests after building]' \
'--use-zstd[Enable support for repodata.json.zst]' \
'--use-bz2[Enable support for repodata.json.bz2]' \
'--experimental[Enable experimental features]' \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(upload)
_arguments "${_arguments_options[@]}" \
'--output-dir=[Output directory for build artifacts. Defaults to \`./output\`]:OUTPUT_DIR:_files' \
'--auth-file=[Path to an auth-file to read authentication information from]:AUTH_FILE:_files' \
'--log-style=[Logging style]:LOG_STYLE:((fancy\:"Use fancy logging output"
json\:"Use JSON logging output"
plain\:"Use plain logging output"))' \
'--color=[Enable or disable colored output from rattler-build. Also honors the \`CLICOLOR\` and \`CLICOLOR_FORCE\` environment variable]:COLOR:((always\:"Always use colors"
never\:"Never use colors"
auto\:"Use colors when the output is a terminal"))' \
'--use-zstd[Enable support for repodata.json.zst]' \
'--use-bz2[Enable support for repodata.json.bz2]' \
'--experimental[Enable experimental features]' \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::package_files -- The package file to upload:_files' \
":: :_rattler-build__upload_commands" \
"*::: :->upload" \
&& ret=0

    case $state in
    (upload)
        words=($line[2] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:rattler-build-upload-command-$line[2]:"
        case $line[2] in
            (quetz)
_arguments "${_arguments_options[@]}" \
'-u+[The URL to your Quetz server]:URL: ' \
'--url=[The URL to your Quetz server]:URL: ' \
'-c+[The URL to your channel]:CHANNEL: ' \
'--channel=[The URL to your channel]:CHANNEL: ' \
'-a+[The Quetz API key, if none is provided, the token is read from the keychain / auth-file]:API_KEY: ' \
'--api-key=[The Quetz API key, if none is provided, the token is read from the keychain / auth-file]:API_KEY: ' \
'--log-style=[Logging style]:LOG_STYLE:((fancy\:"Use fancy logging output"
json\:"Use JSON logging output"
plain\:"Use plain logging output"))' \
'--color=[Enable or disable colored output from rattler-build. Also honors the \`CLICOLOR\` and \`CLICOLOR_FORCE\` environment variable]:COLOR:((always\:"Always use colors"
never\:"Never use colors"
auto\:"Use colors when the output is a terminal"))' \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'*::package_files -- The package file to upload:_files' \
&& ret=0
;;
(artifactory)
_arguments "${_arguments_options[@]}" \
'-u+[The URL to your Artifactory server]:URL: ' \
'--url=[The URL to your Artifactory server]:URL: ' \
'-c+[The URL to your channel]:CHANNEL: ' \
'--channel=[The URL to your channel]:CHANNEL: ' \
'-r+[Your Artifactory username]:USERNAME: ' \
'--username=[Your Artifactory username]:USERNAME: ' \
'-p+[Your Artifactory password]:PASSWORD: ' \
'--password=[Your Artifactory password]:PASSWORD: ' \
'--log-style=[Logging style]:LOG_STYLE:((fancy\:"Use fancy logging output"
json\:"Use JSON logging output"
plain\:"Use plain logging output"))' \
'--color=[Enable or disable colored output from rattler-build. Also honors the \`CLICOLOR\` and \`CLICOLOR_FORCE\` environment variable]:COLOR:((always\:"Always use colors"
never\:"Never use colors"
auto\:"Use colors when the output is a terminal"))' \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'*::package_files -- The package file to upload:_files' \
&& ret=0
;;
(prefix)
_arguments "${_arguments_options[@]}" \
'-u+[The URL to the prefix.dev server (only necessary for self-hosted instances)]:URL: ' \
'--url=[The URL to the prefix.dev server (only necessary for self-hosted instances)]:URL: ' \
'-c+[The channel to upload the package to]:CHANNEL: ' \
'--channel=[The channel to upload the package to]:CHANNEL: ' \
'-a+[The prefix.dev API key, if none is provided, the token is read from the keychain / auth-file]:API_KEY: ' \
'--api-key=[The prefix.dev API key, if none is provided, the token is read from the keychain / auth-file]:API_KEY: ' \
'--log-style=[Logging style]:LOG_STYLE:((fancy\:"Use fancy logging output"
json\:"Use JSON logging output"
plain\:"Use plain logging output"))' \
'--color=[Enable or disable colored output from rattler-build. Also honors the \`CLICOLOR\` and \`CLICOLOR_FORCE\` environment variable]:COLOR:((always\:"Always use colors"
never\:"Never use colors"
auto\:"Use colors when the output is a terminal"))' \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'*::package_files -- The package file to upload:_files' \
&& ret=0
;;
(anaconda)
_arguments "${_arguments_options[@]}" \
'-o+[The owner of the distribution (e.g. conda-forge or your username)]:OWNER: ' \
'--owner=[The owner of the distribution (e.g. conda-forge or your username)]:OWNER: ' \
'*-c+[The channel / label to upload the package to (e.g. main / rc)]:CHANNEL: ' \
'*--channel=[The channel / label to upload the package to (e.g. main / rc)]:CHANNEL: ' \
'-a+[The Anaconda API key, if none is provided, the token is read from the keychain / auth-file]:API_KEY: ' \
'--api-key=[The Anaconda API key, if none is provided, the token is read from the keychain / auth-file]:API_KEY: ' \
'-u+[The URL to the Anaconda server]:URL: ' \
'--url=[The URL to the Anaconda server]:URL: ' \
'--log-style=[Logging style]:LOG_STYLE:((fancy\:"Use fancy logging output"
json\:"Use JSON logging output"
plain\:"Use plain logging output"))' \
'--color=[Enable or disable colored output from rattler-build. Also honors the \`CLICOLOR\` and \`CLICOLOR_FORCE\` environment variable]:COLOR:((always\:"Always use colors"
never\:"Never use colors"
auto\:"Use colors when the output is a terminal"))' \
'-f[Replace files on conflict]' \
'--force[Replace files on conflict]' \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'*::package_files -- The package file to upload:_files' \
&& ret=0
;;
(conda-forge)
_arguments "${_arguments_options[@]}" \
'--staging-token=[The Anaconda API key]:STAGING_TOKEN: ' \
'--feedstock=[The feedstock name]:FEEDSTOCK: ' \
'--feedstock-token=[The feedstock token]:FEEDSTOCK_TOKEN: ' \
'--staging-channel=[The staging channel name]:STAGING_CHANNEL: ' \
'--anaconda-url=[The Anaconda Server URL]:ANACONDA_URL: ' \
'--validation-endpoint=[The validation endpoint url]:VALIDATION_ENDPOINT: ' \
'--provider=[The CI provider]:PROVIDER: ' \
'--log-style=[Logging style]:LOG_STYLE:((fancy\:"Use fancy logging output"
json\:"Use JSON logging output"
plain\:"Use plain logging output"))' \
'--color=[Enable or disable colored output from rattler-build. Also honors the \`CLICOLOR\` and \`CLICOLOR_FORCE\` environment variable]:COLOR:((always\:"Always use colors"
never\:"Never use colors"
auto\:"Use colors when the output is a terminal"))' \
'--post-comment-on-error[Post comment on promotion failure]' \
'--dry-run[Dry run, don'\''t actually upload anything]' \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'*::package_files -- The package file to upload:_files' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" \
":: :_rattler-build__upload__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:rattler-build-upload-help-command-$line[1]:"
        case $line[1] in
            (quetz)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(artifactory)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(prefix)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(anaconda)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(conda-forge)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(completion)
_arguments "${_arguments_options[@]}" \
'-s+[Shell]:SHELL:(bash elvish fish powershell zsh)' \
'--shell=[Shell]:SHELL:(bash elvish fish powershell zsh)' \
'--log-style=[Logging style]:LOG_STYLE:((fancy\:"Use fancy logging output"
json\:"Use JSON logging output"
plain\:"Use plain logging output"))' \
'--color=[Enable or disable colored output from rattler-build. Also honors the \`CLICOLOR\` and \`CLICOLOR_FORCE\` environment variable]:COLOR:((always\:"Always use colors"
never\:"Never use colors"
auto\:"Use colors when the output is a terminal"))' \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(generate-recipe)
_arguments "${_arguments_options[@]}" \
'--log-style=[Logging style]:LOG_STYLE:((fancy\:"Use fancy logging output"
json\:"Use JSON logging output"
plain\:"Use plain logging output"))' \
'--color=[Enable or disable colored output from rattler-build. Also honors the \`CLICOLOR\` and \`CLICOLOR_FORCE\` environment variable]:COLOR:((always\:"Always use colors"
never\:"Never use colors"
auto\:"Use colors when the output is a terminal"))' \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':source -- Type of package to generate a recipe for:((pypi\:"Generate a recipe for a Python package from PyPI"
cran\:"Generate a recipe for an R package from CRAN"))' \
':package -- Name of the package to generate:' \
&& ret=0
;;
(auth)
_arguments "${_arguments_options[@]}" \
'--log-style=[Logging style]:LOG_STYLE:((fancy\:"Use fancy logging output"
json\:"Use JSON logging output"
plain\:"Use plain logging output"))' \
'--color=[Enable or disable colored output from rattler-build. Also honors the \`CLICOLOR\` and \`CLICOLOR_FORCE\` environment variable]:COLOR:((always\:"Always use colors"
never\:"Never use colors"
auto\:"Use colors when the output is a terminal"))' \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_rattler-build__auth_commands" \
"*::: :->auth" \
&& ret=0

    case $state in
    (auth)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:rattler-build-auth-command-$line[1]:"
        case $line[1] in
            (login)
_arguments "${_arguments_options[@]}" \
'--token=[The token to use (for authentication with prefix.dev)]:TOKEN: ' \
'--username=[The username to use (for basic HTTP authentication)]:USERNAME: ' \
'--password=[The password to use (for basic HTTP authentication)]:PASSWORD: ' \
'--conda-token=[The token to use on anaconda.org / quetz authentication]:CONDA_TOKEN: ' \
'--log-style=[Logging style]:LOG_STYLE:((fancy\:"Use fancy logging output"
json\:"Use JSON logging output"
plain\:"Use plain logging output"))' \
'--color=[Enable or disable colored output from rattler-build. Also honors the \`CLICOLOR\` and \`CLICOLOR_FORCE\` environment variable]:COLOR:((always\:"Always use colors"
never\:"Never use colors"
auto\:"Use colors when the output is a terminal"))' \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':host -- The host to authenticate with (e.g. repo.prefix.dev):' \
&& ret=0
;;
(logout)
_arguments "${_arguments_options[@]}" \
'--log-style=[Logging style]:LOG_STYLE:((fancy\:"Use fancy logging output"
json\:"Use JSON logging output"
plain\:"Use plain logging output"))' \
'--color=[Enable or disable colored output from rattler-build. Also honors the \`CLICOLOR\` and \`CLICOLOR_FORCE\` environment variable]:COLOR:((always\:"Always use colors"
never\:"Never use colors"
auto\:"Use colors when the output is a terminal"))' \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':host -- The host to remove authentication for:' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" \
":: :_rattler-build__auth__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:rattler-build-auth-help-command-$line[1]:"
        case $line[1] in
            (login)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(logout)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(help)
_arguments "${_arguments_options[@]}" \
":: :_rattler-build__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:rattler-build-help-command-$line[1]:"
        case $line[1] in
            (build)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(test)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(rebuild)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(upload)
_arguments "${_arguments_options[@]}" \
":: :_rattler-build__help__upload_commands" \
"*::: :->upload" \
&& ret=0

    case $state in
    (upload)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:rattler-build-help-upload-command-$line[1]:"
        case $line[1] in
            (quetz)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(artifactory)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(prefix)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(anaconda)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(conda-forge)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
        esac
    ;;
esac
;;
(completion)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(generate-recipe)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(auth)
_arguments "${_arguments_options[@]}" \
":: :_rattler-build__help__auth_commands" \
"*::: :->auth" \
&& ret=0

    case $state in
    (auth)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:rattler-build-help-auth-command-$line[1]:"
        case $line[1] in
            (login)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(logout)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
        esac
    ;;
esac
;;
(help)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
}

(( $+functions[_rattler-build_commands] )) ||
_rattler-build_commands() {
    local commands; commands=(
'build:Build a package' \
'test:Test a package' \
'rebuild:Rebuild a package' \
'upload:Upload a package' \
'completion:Generate shell completion script' \
'generate-recipe:Generate a recipe from PyPI or CRAN' \
'auth:Handle authentication to external repositories' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'rattler-build commands' commands "$@"
}
(( $+functions[_rattler-build__help__upload__anaconda_commands] )) ||
_rattler-build__help__upload__anaconda_commands() {
    local commands; commands=()
    _describe -t commands 'rattler-build help upload anaconda commands' commands "$@"
}
(( $+functions[_rattler-build__upload__anaconda_commands] )) ||
_rattler-build__upload__anaconda_commands() {
    local commands; commands=()
    _describe -t commands 'rattler-build upload anaconda commands' commands "$@"
}
(( $+functions[_rattler-build__upload__help__anaconda_commands] )) ||
_rattler-build__upload__help__anaconda_commands() {
    local commands; commands=()
    _describe -t commands 'rattler-build upload help anaconda commands' commands "$@"
}
(( $+functions[_rattler-build__help__upload__artifactory_commands] )) ||
_rattler-build__help__upload__artifactory_commands() {
    local commands; commands=()
    _describe -t commands 'rattler-build help upload artifactory commands' commands "$@"
}
(( $+functions[_rattler-build__upload__artifactory_commands] )) ||
_rattler-build__upload__artifactory_commands() {
    local commands; commands=()
    _describe -t commands 'rattler-build upload artifactory commands' commands "$@"
}
(( $+functions[_rattler-build__upload__help__artifactory_commands] )) ||
_rattler-build__upload__help__artifactory_commands() {
    local commands; commands=()
    _describe -t commands 'rattler-build upload help artifactory commands' commands "$@"
}
(( $+functions[_rattler-build__auth_commands] )) ||
_rattler-build__auth_commands() {
    local commands; commands=(
'login:Store authentication information for a given host' \
'logout:Remove authentication information for a given host' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'rattler-build auth commands' commands "$@"
}
(( $+functions[_rattler-build__help__auth_commands] )) ||
_rattler-build__help__auth_commands() {
    local commands; commands=(
'login:Store authentication information for a given host' \
'logout:Remove authentication information for a given host' \
    )
    _describe -t commands 'rattler-build help auth commands' commands "$@"
}
(( $+functions[_rattler-build__build_commands] )) ||
_rattler-build__build_commands() {
    local commands; commands=()
    _describe -t commands 'rattler-build build commands' commands "$@"
}
(( $+functions[_rattler-build__help__build_commands] )) ||
_rattler-build__help__build_commands() {
    local commands; commands=()
    _describe -t commands 'rattler-build help build commands' commands "$@"
}
(( $+functions[_rattler-build__completion_commands] )) ||
_rattler-build__completion_commands() {
    local commands; commands=()
    _describe -t commands 'rattler-build completion commands' commands "$@"
}
(( $+functions[_rattler-build__help__completion_commands] )) ||
_rattler-build__help__completion_commands() {
    local commands; commands=()
    _describe -t commands 'rattler-build help completion commands' commands "$@"
}
(( $+functions[_rattler-build__help__upload__conda-forge_commands] )) ||
_rattler-build__help__upload__conda-forge_commands() {
    local commands; commands=()
    _describe -t commands 'rattler-build help upload conda-forge commands' commands "$@"
}
(( $+functions[_rattler-build__upload__conda-forge_commands] )) ||
_rattler-build__upload__conda-forge_commands() {
    local commands; commands=()
    _describe -t commands 'rattler-build upload conda-forge commands' commands "$@"
}
(( $+functions[_rattler-build__upload__help__conda-forge_commands] )) ||
_rattler-build__upload__help__conda-forge_commands() {
    local commands; commands=()
    _describe -t commands 'rattler-build upload help conda-forge commands' commands "$@"
}
(( $+functions[_rattler-build__generate-recipe_commands] )) ||
_rattler-build__generate-recipe_commands() {
    local commands; commands=()
    _describe -t commands 'rattler-build generate-recipe commands' commands "$@"
}
(( $+functions[_rattler-build__help__generate-recipe_commands] )) ||
_rattler-build__help__generate-recipe_commands() {
    local commands; commands=()
    _describe -t commands 'rattler-build help generate-recipe commands' commands "$@"
}
(( $+functions[_rattler-build__auth__help_commands] )) ||
_rattler-build__auth__help_commands() {
    local commands; commands=(
'login:Store authentication information for a given host' \
'logout:Remove authentication information for a given host' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'rattler-build auth help commands' commands "$@"
}
(( $+functions[_rattler-build__auth__help__help_commands] )) ||
_rattler-build__auth__help__help_commands() {
    local commands; commands=()
    _describe -t commands 'rattler-build auth help help commands' commands "$@"
}
(( $+functions[_rattler-build__help_commands] )) ||
_rattler-build__help_commands() {
    local commands; commands=(
'build:Build a package' \
'test:Test a package' \
'rebuild:Rebuild a package' \
'upload:Upload a package' \
'completion:Generate shell completion script' \
'generate-recipe:Generate a recipe from PyPI or CRAN' \
'auth:Handle authentication to external repositories' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'rattler-build help commands' commands "$@"
}
(( $+functions[_rattler-build__help__help_commands] )) ||
_rattler-build__help__help_commands() {
    local commands; commands=()
    _describe -t commands 'rattler-build help help commands' commands "$@"
}
(( $+functions[_rattler-build__upload__help_commands] )) ||
_rattler-build__upload__help_commands() {
    local commands; commands=(
'quetz:Options for uploading to a Quetz server. Authentication is used from the keychain / auth-file' \
'artifactory:Options for uploading to a Artifactory channel. Authentication is used from the keychain / auth-file' \
'prefix:Options for uploading to a prefix.dev server. Authentication is used from the keychain / auth-file' \
'anaconda:Options for uploading to a Anaconda.org server' \
'conda-forge:Options for uploading to conda-forge' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'rattler-build upload help commands' commands "$@"
}
(( $+functions[_rattler-build__upload__help__help_commands] )) ||
_rattler-build__upload__help__help_commands() {
    local commands; commands=()
    _describe -t commands 'rattler-build upload help help commands' commands "$@"
}
(( $+functions[_rattler-build__auth__help__login_commands] )) ||
_rattler-build__auth__help__login_commands() {
    local commands; commands=()
    _describe -t commands 'rattler-build auth help login commands' commands "$@"
}
(( $+functions[_rattler-build__auth__login_commands] )) ||
_rattler-build__auth__login_commands() {
    local commands; commands=()
    _describe -t commands 'rattler-build auth login commands' commands "$@"
}
(( $+functions[_rattler-build__help__auth__login_commands] )) ||
_rattler-build__help__auth__login_commands() {
    local commands; commands=()
    _describe -t commands 'rattler-build help auth login commands' commands "$@"
}
(( $+functions[_rattler-build__auth__help__logout_commands] )) ||
_rattler-build__auth__help__logout_commands() {
    local commands; commands=()
    _describe -t commands 'rattler-build auth help logout commands' commands "$@"
}
(( $+functions[_rattler-build__auth__logout_commands] )) ||
_rattler-build__auth__logout_commands() {
    local commands; commands=()
    _describe -t commands 'rattler-build auth logout commands' commands "$@"
}
(( $+functions[_rattler-build__help__auth__logout_commands] )) ||
_rattler-build__help__auth__logout_commands() {
    local commands; commands=()
    _describe -t commands 'rattler-build help auth logout commands' commands "$@"
}
(( $+functions[_rattler-build__help__upload__prefix_commands] )) ||
_rattler-build__help__upload__prefix_commands() {
    local commands; commands=()
    _describe -t commands 'rattler-build help upload prefix commands' commands "$@"
}
(( $+functions[_rattler-build__upload__help__prefix_commands] )) ||
_rattler-build__upload__help__prefix_commands() {
    local commands; commands=()
    _describe -t commands 'rattler-build upload help prefix commands' commands "$@"
}
(( $+functions[_rattler-build__upload__prefix_commands] )) ||
_rattler-build__upload__prefix_commands() {
    local commands; commands=()
    _describe -t commands 'rattler-build upload prefix commands' commands "$@"
}
(( $+functions[_rattler-build__help__upload__quetz_commands] )) ||
_rattler-build__help__upload__quetz_commands() {
    local commands; commands=()
    _describe -t commands 'rattler-build help upload quetz commands' commands "$@"
}
(( $+functions[_rattler-build__upload__help__quetz_commands] )) ||
_rattler-build__upload__help__quetz_commands() {
    local commands; commands=()
    _describe -t commands 'rattler-build upload help quetz commands' commands "$@"
}
(( $+functions[_rattler-build__upload__quetz_commands] )) ||
_rattler-build__upload__quetz_commands() {
    local commands; commands=()
    _describe -t commands 'rattler-build upload quetz commands' commands "$@"
}
(( $+functions[_rattler-build__help__rebuild_commands] )) ||
_rattler-build__help__rebuild_commands() {
    local commands; commands=()
    _describe -t commands 'rattler-build help rebuild commands' commands "$@"
}
(( $+functions[_rattler-build__rebuild_commands] )) ||
_rattler-build__rebuild_commands() {
    local commands; commands=()
    _describe -t commands 'rattler-build rebuild commands' commands "$@"
}
(( $+functions[_rattler-build__help__test_commands] )) ||
_rattler-build__help__test_commands() {
    local commands; commands=()
    _describe -t commands 'rattler-build help test commands' commands "$@"
}
(( $+functions[_rattler-build__test_commands] )) ||
_rattler-build__test_commands() {
    local commands; commands=()
    _describe -t commands 'rattler-build test commands' commands "$@"
}
(( $+functions[_rattler-build__help__upload_commands] )) ||
_rattler-build__help__upload_commands() {
    local commands; commands=(
'quetz:Options for uploading to a Quetz server. Authentication is used from the keychain / auth-file' \
'artifactory:Options for uploading to a Artifactory channel. Authentication is used from the keychain / auth-file' \
'prefix:Options for uploading to a prefix.dev server. Authentication is used from the keychain / auth-file' \
'anaconda:Options for uploading to a Anaconda.org server' \
'conda-forge:Options for uploading to conda-forge' \
    )
    _describe -t commands 'rattler-build help upload commands' commands "$@"
}
(( $+functions[_rattler-build__upload_commands] )) ||
_rattler-build__upload_commands() {
    local commands; commands=(
'quetz:Options for uploading to a Quetz server. Authentication is used from the keychain / auth-file' \
'artifactory:Options for uploading to a Artifactory channel. Authentication is used from the keychain / auth-file' \
'prefix:Options for uploading to a prefix.dev server. Authentication is used from the keychain / auth-file' \
'anaconda:Options for uploading to a Anaconda.org server' \
'conda-forge:Options for uploading to conda-forge' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'rattler-build upload commands' commands "$@"
}

if [ "$funcstack[1]" = "_rattler-build" ]; then
    _rattler-build "$@"
else
    compdef _rattler-build rattler-build
fi
