#compdef uv

autoload -U is-at-least

_uv() {
    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[@]}" \
'(--no-color)--color=[Control colors in output]:COLOR:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
always\:"Enables colored output regardless of the detected environment"
never\:"Disables colored output"))' \
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
'(-v --verbose)-q[Do not print any output]' \
'(-v --verbose)--quiet[Do not print any output]' \
'(-q --quiet)-v[Use verbose output]' \
'(-q --quiet)--verbose[Use verbose output]' \
'(--color)--no-color[Disable colors; provided for compatibility with \`pip\`]' \
'-n[Avoid reading from or writing to the cache]' \
'--no-cache[Avoid reading from or writing to the cache]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'-V[Print version]' \
'--version[Print version]' \
":: :_uv_commands" \
"*::: :->uv" \
&& ret=0
    case $state in
    (uv)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:uv-command-$line[1]:"
        case $line[1] in
            (pip)
_arguments "${_arguments_options[@]}" \
'(--no-color)--color=[Control colors in output]:COLOR:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
always\:"Enables colored output regardless of the detected environment"
never\:"Disables colored output"))' \
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
'(-v --verbose)-q[Do not print any output]' \
'(-v --verbose)--quiet[Do not print any output]' \
'(-q --quiet)-v[Use verbose output]' \
'(-q --quiet)--verbose[Use verbose output]' \
'(--color)--no-color[Disable colors; provided for compatibility with \`pip\`]' \
'-n[Avoid reading from or writing to the cache]' \
'--no-cache[Avoid reading from or writing to the cache]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'-V[Print version]' \
'--version[Print version]' \
":: :_uv__pip_commands" \
"*::: :->pip" \
&& ret=0

    case $state in
    (pip)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:uv-pip-command-$line[1]:"
        case $line[1] in
            (compile)
_arguments "${_arguments_options[@]}" \
'*-c+[Constrain versions using the given requirements files]:CONSTRAINT:_files' \
'*--constraint=[Constrain versions using the given requirements files]:CONSTRAINT:_files' \
'*--override=[Override versions using the given requirements files]:OVERRIDE:_files' \
'(--all-extras)*--extra=[Include optional dependencies in the given extra group name; may be provided more than once]:EXTRA: ' \
'--resolution=[]:RESOLUTION:((highest\:"Resolve the highest compatible version of each package"
lowest\:"Resolve the lowest compatible version of each package"
lowest-direct\:"Resolve the lowest compatible version of any direct dependencies, and the highest compatible version of any transitive dependencies"))' \
'(--pre)--prerelease=[]:PRERELEASE:((disallow\:"Disallow all pre-release versions"
allow\:"Allow all pre-release versions"
if-necessary\:"Allow pre-release versions if all versions of a package are pre-release"
explicit\:"Allow pre-release versions for first-party packages with explicit pre-release markers in their version requirements"
if-necessary-or-explicit\:"Allow pre-release versions if all versions of a package are pre-release, or if the package has an explicit pre-release marker in its version requirements"))' \
'-o+[Write the compiled requirements to the given \`requirements.txt\` file]:OUTPUT_FILE:_files' \
'--output-file=[Write the compiled requirements to the given \`requirements.txt\` file]:OUTPUT_FILE:_files' \
'*--refresh-package=[Refresh cached data for a specific package]:REFRESH_PACKAGE: ' \
'-i+[The URL of the Python package index (by default\: <https\://pypi.org/simple>)]:INDEX_URL: ' \
'--index-url=[The URL of the Python package index (by default\: <https\://pypi.org/simple>)]:INDEX_URL: ' \
'*--extra-index-url=[Extra URLs of package indexes to use, in addition to \`--index-url\`]:EXTRA_INDEX_URL: ' \
'*-f+[Locations to search for candidate distributions, beyond those found in the indexes]:FIND_LINKS: ' \
'*--find-links=[Locations to search for candidate distributions, beyond those found in the indexes]:FIND_LINKS: ' \
'*-P+[Allow upgrades for a specific package, ignoring pinned versions in the existing output file]:UPGRADE_PACKAGE: ' \
'*--upgrade-package=[Allow upgrades for a specific package, ignoring pinned versions in the existing output file]:UPGRADE_PACKAGE: ' \
'(--no-build)*--only-binary=[Only use pre-built wheels; don'\''t build source distributions]:ONLY_BINARY: ' \
'*-C+[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING: ' \
'*--config-setting=[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING: ' \
'-p+[The minimum Python version that should be supported by the compiled requirements (e.g., \`3.7\` or \`3.7.9\`)]:PYTHON_VERSION: ' \
'--python-version=[The minimum Python version that should be supported by the compiled requirements (e.g., \`3.7\` or \`3.7.9\`)]:PYTHON_VERSION: ' \
'--exclude-newer=[Limit candidate packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER: ' \
'*--no-emit-package=[Specify a package to omit from the output resolution. Its dependencies will still be included in the resolution. Equivalent to pip-compile'\''s \`--unsafe-package\` option]:NO_EMIT_PACKAGE: ' \
'--annotation-style=[Choose the style of the annotation comments, which indicate the source of each package]:ANNOTATION_STYLE:((line\:"Render the annotations on a single, comma-separated line"
split\:"Render each annotation on its own line"))' \
'--resolver=[]:RESOLVER:(backtracking legacy)' \
'--max-rounds=[]:MAX_ROUNDS: ' \
'--cert=[]:CERT: ' \
'--client-cert=[]:CLIENT_CERT: ' \
'--trusted-host=[]:TRUSTED_HOST: ' \
'--config=[]:CONFIG: ' \
'--pip-args=[]:PIP_ARGS: ' \
'(--no-color)--color=[Control colors in output]:COLOR:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
always\:"Enables colored output regardless of the detected environment"
never\:"Disables colored output"))' \
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
'(--extra)--all-extras[Include all optional dependencies]' \
'--no-deps[Ignore package dependencies, instead only add those packages explicitly listed on the command line to the resulting the requirements file]' \
'(--prerelease)--pre[]' \
'--no-annotate[Exclude comment annotations indicating the source of each package]' \
'--no-header[Exclude the comment header at the top of the generated output file]' \
'(--refresh --refresh-package)--offline[Run offline, i.e., without accessing the network]' \
'--refresh[Refresh all cached data]' \
'(-i --index-url --extra-index-url)--no-index[Ignore the registry index (e.g., PyPI), instead relying on direct URL dependencies and those discovered via \`--find-links\`]' \
'-U[Allow package upgrades, ignoring pinned versions in the existing output file]' \
'--upgrade[Allow package upgrades, ignoring pinned versions in the existing output file]' \
'--generate-hashes[Include distribution hashes in the output file]' \
'--legacy-setup-py[Use legacy \`setuptools\` behavior when building source distributions without a \`pyproject.toml\`]' \
'(--only-binary)--no-build[Don'\''t build source distributions]' \
'--emit-index-url[Include \`--index-url\` and \`--extra-index-url\` entries in the generated output file]' \
'--emit-find-links[Include \`--find-links\` entries in the generated output file]' \
'--allow-unsafe[]' \
'--no-allow-unsafe[]' \
'--reuse-hashes[]' \
'--no-reuse-hashes[]' \
'--build-isolation[]' \
'--no-build-isolation[]' \
'--emit-trusted-host[]' \
'--no-emit-trusted-host[]' \
'--no-config[]' \
'--no-emit-index-url[]' \
'--no-emit-find-links[]' \
'--emit-options[]' \
'--no-emit-options[]' \
'--strip-extras[]' \
'--no-strip-extras[]' \
'(-v --verbose)-q[Do not print any output]' \
'(-v --verbose)--quiet[Do not print any output]' \
'(-q --quiet)-v[Use verbose output]' \
'(-q --quiet)--verbose[Use verbose output]' \
'(--color)--no-color[Disable colors; provided for compatibility with \`pip\`]' \
'-n[Avoid reading from or writing to the cache]' \
'--no-cache[Avoid reading from or writing to the cache]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'-V[Print version]' \
'--version[Print version]' \
'*::src_file -- Include all packages listed in the given `requirements.in` files:_files' \
&& ret=0
;;
(sync)
_arguments "${_arguments_options[@]}" \
'*--reinstall-package=[Reinstall a specific package, regardless of whether it'\''s already installed]:REINSTALL_PACKAGE: ' \
'*--refresh-package=[Refresh cached data for a specific package]:REFRESH_PACKAGE: ' \
'--link-mode=[The method to use when installing packages from the global cache]:LINK_MODE:((clone\:"Clone (i.e., copy-on-write) packages from the wheel into the site packages"
copy\:"Copy packages from the wheel into the site packages"
hardlink\:"Hard link packages from the wheel into the site packages"))' \
'-i+[The URL of the Python package index (by default\: <https\://pypi.org/simple>)]:INDEX_URL: ' \
'--index-url=[The URL of the Python package index (by default\: <https\://pypi.org/simple>)]:INDEX_URL: ' \
'*--extra-index-url=[Extra URLs of package indexes to use, in addition to \`--index-url\`]:EXTRA_INDEX_URL: ' \
'*-f+[Locations to search for candidate distributions, beyond those found in the indexes]:FIND_LINKS: ' \
'*--find-links=[Locations to search for candidate distributions, beyond those found in the indexes]:FIND_LINKS: ' \
'(--system)-p+[The Python interpreter into which packages should be installed.]:PYTHON: ' \
'(--system)--python=[The Python interpreter into which packages should be installed.]:PYTHON: ' \
'(--no-build)*--no-binary=[Don'\''t install pre-built wheels]:NO_BINARY: ' \
'(--no-build)*--only-binary=[Only use pre-built wheels; don'\''t build source distributions]:ONLY_BINARY: ' \
'*-C+[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING: ' \
'*--config-setting=[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING: ' \
'--trusted-host=[]:TRUSTED_HOST: ' \
'--python-executable=[]:PYTHON_EXECUTABLE: ' \
'--cert=[]:CERT: ' \
'--client-cert=[]:CLIENT_CERT: ' \
'--config=[]:CONFIG: ' \
'--pip-args=[]:PIP_ARGS: ' \
'(--no-color)--color=[Control colors in output]:COLOR:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
always\:"Enables colored output regardless of the detected environment"
never\:"Disables colored output"))' \
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
'--reinstall[Reinstall all packages, regardless of whether they'\''re already installed]' \
'(--refresh --refresh-package)--offline[Run offline, i.e., without accessing the network]' \
'--refresh[Refresh all cached data]' \
'(-i --index-url --extra-index-url)--no-index[Ignore the registry index (e.g., PyPI), instead relying on direct URL dependencies and those discovered via \`--find-links\`]' \
'(-p --python)--system[Install packages into the system Python]' \
'--legacy-setup-py[Use legacy \`setuptools\` behavior when building source distributions without a \`pyproject.toml\`]' \
'(--no-binary --only-binary)--no-build[Don'\''t build source distributions]' \
'--strict[Validate the virtual environment after completing the installation, to detect packages with missing dependencies or other issues]' \
'-a[]' \
'--ask[]' \
'--user[]' \
'--no-config[]' \
'(-v --verbose)-q[Do not print any output]' \
'(-v --verbose)--quiet[Do not print any output]' \
'(-q --quiet)-v[Use verbose output]' \
'(-q --quiet)--verbose[Use verbose output]' \
'(--color)--no-color[Disable colors; provided for compatibility with \`pip\`]' \
'-n[Avoid reading from or writing to the cache]' \
'--no-cache[Avoid reading from or writing to the cache]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'-V[Print version]' \
'--version[Print version]' \
'*::src_file -- Include all packages listed in the given `requirements.txt` files:_files' \
&& ret=0
;;
(install)
_arguments "${_arguments_options[@]}" \
'*-r+[Install all packages listed in the given requirements files]:REQUIREMENT:_files' \
'*--requirement=[Install all packages listed in the given requirements files]:REQUIREMENT:_files' \
'*-e+[Install the editable package based on the provided local file path]:EDITABLE: ' \
'*--editable=[Install the editable package based on the provided local file path]:EDITABLE: ' \
'*-c+[Constrain versions using the given requirements files]:CONSTRAINT:_files' \
'*--constraint=[Constrain versions using the given requirements files]:CONSTRAINT:_files' \
'*--override=[Override versions using the given requirements files]:OVERRIDE:_files' \
'(--all-extras)*--extra=[Include optional dependencies in the given extra group name; may be provided more than once]:EXTRA: ' \
'*-P+[Allow upgrade of a specific package]:UPGRADE_PACKAGE: ' \
'*--upgrade-package=[Allow upgrade of a specific package]:UPGRADE_PACKAGE: ' \
'*--reinstall-package=[Reinstall a specific package, regardless of whether it'\''s already installed]:REINSTALL_PACKAGE: ' \
'*--refresh-package=[Refresh cached data for a specific package]:REFRESH_PACKAGE: ' \
'--link-mode=[The method to use when installing packages from the global cache]:LINK_MODE:((clone\:"Clone (i.e., copy-on-write) packages from the wheel into the site packages"
copy\:"Copy packages from the wheel into the site packages"
hardlink\:"Hard link packages from the wheel into the site packages"))' \
'--resolution=[]:RESOLUTION:((highest\:"Resolve the highest compatible version of each package"
lowest\:"Resolve the lowest compatible version of each package"
lowest-direct\:"Resolve the lowest compatible version of any direct dependencies, and the highest compatible version of any transitive dependencies"))' \
'(--pre)--prerelease=[]:PRERELEASE:((disallow\:"Disallow all pre-release versions"
allow\:"Allow all pre-release versions"
if-necessary\:"Allow pre-release versions if all versions of a package are pre-release"
explicit\:"Allow pre-release versions for first-party packages with explicit pre-release markers in their version requirements"
if-necessary-or-explicit\:"Allow pre-release versions if all versions of a package are pre-release, or if the package has an explicit pre-release marker in its version requirements"))' \
'-o+[Write the compiled requirements to the given \`requirements.txt\` file]:OUTPUT_FILE:_files' \
'--output-file=[Write the compiled requirements to the given \`requirements.txt\` file]:OUTPUT_FILE:_files' \
'-i+[The URL of the Python package index (by default\: <https\://pypi.org/simple>)]:INDEX_URL: ' \
'--index-url=[The URL of the Python package index (by default\: <https\://pypi.org/simple>)]:INDEX_URL: ' \
'*--extra-index-url=[Extra URLs of package indexes to use, in addition to \`--index-url\`]:EXTRA_INDEX_URL: ' \
'*-f+[Locations to search for candidate distributions, beyond those found in the indexes]:FIND_LINKS: ' \
'*--find-links=[Locations to search for candidate distributions, beyond those found in the indexes]:FIND_LINKS: ' \
'(--system)-p+[The Python interpreter into which packages should be installed.]:PYTHON: ' \
'(--system)--python=[The Python interpreter into which packages should be installed.]:PYTHON: ' \
'(--no-build)*--no-binary=[Don'\''t install pre-built wheels]:NO_BINARY: ' \
'(--no-build)*--only-binary=[Only use pre-built wheels; don'\''t build source distributions]:ONLY_BINARY: ' \
'*-C+[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING: ' \
'*--config-setting=[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING: ' \
'--exclude-newer=[Limit candidate packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER: ' \
'(--no-color)--color=[Control colors in output]:COLOR:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
always\:"Enables colored output regardless of the detected environment"
never\:"Disables colored output"))' \
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
'(--extra)--all-extras[Include all optional dependencies]' \
'-U[Allow package upgrades]' \
'--upgrade[Allow package upgrades]' \
'--reinstall[Reinstall all packages, regardless of whether they'\''re already installed]' \
'(--refresh --refresh-package)--offline[Run offline, i.e., without accessing the network]' \
'--refresh[Refresh all cached data]' \
'--no-deps[Ignore package dependencies, instead only installing those packages explicitly listed on the command line or in the requirements files]' \
'(--prerelease)--pre[]' \
'(-i --index-url --extra-index-url)--no-index[Ignore the registry index (e.g., PyPI), instead relying on direct URL dependencies and those discovered via \`--find-links\`]' \
'(-p --python)--system[Install packages into the system Python]' \
'--legacy-setup-py[Use legacy \`setuptools\` behavior when building source distributions without a \`pyproject.toml\`]' \
'(--no-binary --only-binary)--no-build[Don'\''t build source distributions]' \
'--strict[Validate the virtual environment after completing the installation, to detect packages with missing dependencies or other issues]' \
'(-v --verbose)-q[Do not print any output]' \
'(-v --verbose)--quiet[Do not print any output]' \
'(-q --quiet)-v[Use verbose output]' \
'(-q --quiet)--verbose[Use verbose output]' \
'(--color)--no-color[Disable colors; provided for compatibility with \`pip\`]' \
'-n[Avoid reading from or writing to the cache]' \
'--no-cache[Avoid reading from or writing to the cache]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'-V[Print version]' \
'--version[Print version]' \
'*::package -- Install all listed packages:' \
&& ret=0
;;
(uninstall)
_arguments "${_arguments_options[@]}" \
'*-r+[Uninstall all packages listed in the given requirements files]:REQUIREMENT:_files' \
'*--requirement=[Uninstall all packages listed in the given requirements files]:REQUIREMENT:_files' \
'*-e+[Uninstall the editable package based on the provided local file path]:EDITABLE: ' \
'*--editable=[Uninstall the editable package based on the provided local file path]:EDITABLE: ' \
'(--system)-p+[The Python interpreter from which packages should be uninstalled.]:PYTHON: ' \
'(--system)--python=[The Python interpreter from which packages should be uninstalled.]:PYTHON: ' \
'(--no-color)--color=[Control colors in output]:COLOR:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
always\:"Enables colored output regardless of the detected environment"
never\:"Disables colored output"))' \
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
'(-p --python)--system[Use the system Python to uninstall packages]' \
'(-v --verbose)-q[Do not print any output]' \
'(-v --verbose)--quiet[Do not print any output]' \
'(-q --quiet)-v[Use verbose output]' \
'(-q --quiet)--verbose[Use verbose output]' \
'(--color)--no-color[Disable colors; provided for compatibility with \`pip\`]' \
'-n[Avoid reading from or writing to the cache]' \
'--no-cache[Avoid reading from or writing to the cache]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'-V[Print version]' \
'--version[Print version]' \
'*::package -- Uninstall all listed packages:' \
&& ret=0
;;
(freeze)
_arguments "${_arguments_options[@]}" \
'(--system)-p+[The Python interpreter for which packages should be listed.]:PYTHON: ' \
'(--system)--python=[The Python interpreter for which packages should be listed.]:PYTHON: ' \
'(--no-color)--color=[Control colors in output]:COLOR:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
always\:"Enables colored output regardless of the detected environment"
never\:"Disables colored output"))' \
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
'--strict[Validate the virtual environment, to detect packages with missing dependencies or other issues]' \
'(-p --python)--system[List packages for the system Python]' \
'(-v --verbose)-q[Do not print any output]' \
'(-v --verbose)--quiet[Do not print any output]' \
'(-q --quiet)-v[Use verbose output]' \
'(-q --quiet)--verbose[Use verbose output]' \
'(--color)--no-color[Disable colors; provided for compatibility with \`pip\`]' \
'-n[Avoid reading from or writing to the cache]' \
'--no-cache[Avoid reading from or writing to the cache]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'-V[Print version]' \
'--version[Print version]' \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" \
'*--exclude=[Exclude the specified package(s) from the output]:EXCLUDE: ' \
'(--system)-p+[The Python interpreter for which packages should be listed.]:PYTHON: ' \
'(--system)--python=[The Python interpreter for which packages should be listed.]:PYTHON: ' \
'(--no-color)--color=[Control colors in output]:COLOR:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
always\:"Enables colored output regardless of the detected environment"
never\:"Disables colored output"))' \
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
'--strict[Validate the virtual environment, to detect packages with missing dependencies or other issues]' \
'-e[Only include editable projects]' \
'--editable[Only include editable projects]' \
'--exclude-editable[Exclude any editable packages from output]' \
'(-p --python)--system[List packages for the system Python]' \
'(-v --verbose)-q[Do not print any output]' \
'(-v --verbose)--quiet[Do not print any output]' \
'(-q --quiet)-v[Use verbose output]' \
'(-q --quiet)--verbose[Use verbose output]' \
'(--color)--no-color[Disable colors; provided for compatibility with \`pip\`]' \
'-n[Avoid reading from or writing to the cache]' \
'--no-cache[Avoid reading from or writing to the cache]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'-V[Print version]' \
'--version[Print version]' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" \
":: :_uv__pip__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:uv-pip-help-command-$line[1]:"
        case $line[1] in
            (compile)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(sync)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(install)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(uninstall)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(freeze)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(venv)
_arguments "${_arguments_options[@]}" \
'(--system)-p+[The Python interpreter to use for the virtual environment.]:PYTHON: ' \
'(--system)--python=[The Python interpreter to use for the virtual environment.]:PYTHON: ' \
'--prompt=[Provide an alternative prompt prefix for the virtual environment.]:PROMPT: ' \
'-i+[The URL of the Python package index (by default\: <https\://pypi.org/simple>)]:INDEX_URL: ' \
'--index-url=[The URL of the Python package index (by default\: <https\://pypi.org/simple>)]:INDEX_URL: ' \
'*--extra-index-url=[Extra URLs of package indexes to use, in addition to \`--index-url\`]:EXTRA_INDEX_URL: ' \
'--exclude-newer=[Limit candidate packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER: ' \
'(--no-color)--color=[Control colors in output]:COLOR:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
always\:"Enables colored output regardless of the detected environment"
never\:"Disables colored output"))' \
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
'(-p --python)--system[Use the system Python to uninstall packages]' \
'--seed[Install seed packages (\`pip\`, \`setuptools\`, and \`wheel\`) into the virtual environment]' \
'(-i --index-url --extra-index-url)--no-index[Ignore the registry index (e.g., PyPI), instead relying on direct URL dependencies and those discovered via \`--find-links\`]' \
'--offline[Run offline, i.e., without accessing the network]' \
'--clear[]' \
'--no-seed[]' \
'--no-pip[]' \
'--no-setuptools[]' \
'--no-wheel[]' \
'(-v --verbose)-q[Do not print any output]' \
'(-v --verbose)--quiet[Do not print any output]' \
'(-q --quiet)-v[Use verbose output]' \
'(-q --quiet)--verbose[Use verbose output]' \
'(--color)--no-color[Disable colors; provided for compatibility with \`pip\`]' \
'-n[Avoid reading from or writing to the cache]' \
'--no-cache[Avoid reading from or writing to the cache]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'-V[Print version]' \
'--version[Print version]' \
'::name -- The path to the virtual environment to create:_files' \
&& ret=0
;;
(cache)
_arguments "${_arguments_options[@]}" \
'(--no-color)--color=[Control colors in output]:COLOR:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
always\:"Enables colored output regardless of the detected environment"
never\:"Disables colored output"))' \
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
'(-v --verbose)-q[Do not print any output]' \
'(-v --verbose)--quiet[Do not print any output]' \
'(-q --quiet)-v[Use verbose output]' \
'(-q --quiet)--verbose[Use verbose output]' \
'(--color)--no-color[Disable colors; provided for compatibility with \`pip\`]' \
'-n[Avoid reading from or writing to the cache]' \
'--no-cache[Avoid reading from or writing to the cache]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'-V[Print version]' \
'--version[Print version]' \
":: :_uv__cache_commands" \
"*::: :->cache" \
&& ret=0

    case $state in
    (cache)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:uv-cache-command-$line[1]:"
        case $line[1] in
            (clean)
_arguments "${_arguments_options[@]}" \
'(--no-color)--color=[Control colors in output]:COLOR:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
always\:"Enables colored output regardless of the detected environment"
never\:"Disables colored output"))' \
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
'(-v --verbose)-q[Do not print any output]' \
'(-v --verbose)--quiet[Do not print any output]' \
'(-q --quiet)-v[Use verbose output]' \
'(-q --quiet)--verbose[Use verbose output]' \
'(--color)--no-color[Disable colors; provided for compatibility with \`pip\`]' \
'-n[Avoid reading from or writing to the cache]' \
'--no-cache[Avoid reading from or writing to the cache]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'-V[Print version]' \
'--version[Print version]' \
'*::package -- The packages to remove from the cache:' \
&& ret=0
;;
(dir)
_arguments "${_arguments_options[@]}" \
'(--no-color)--color=[Control colors in output]:COLOR:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
always\:"Enables colored output regardless of the detected environment"
never\:"Disables colored output"))' \
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
'(-v --verbose)-q[Do not print any output]' \
'(-v --verbose)--quiet[Do not print any output]' \
'(-q --quiet)-v[Use verbose output]' \
'(-q --quiet)--verbose[Use verbose output]' \
'(--color)--no-color[Disable colors; provided for compatibility with \`pip\`]' \
'-n[Avoid reading from or writing to the cache]' \
'--no-cache[Avoid reading from or writing to the cache]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'-V[Print version]' \
'--version[Print version]' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" \
":: :_uv__cache__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:uv-cache-help-command-$line[1]:"
        case $line[1] in
            (clean)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(dir)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(clean)
_arguments "${_arguments_options[@]}" \
'(--no-color)--color=[Control colors in output]:COLOR:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
always\:"Enables colored output regardless of the detected environment"
never\:"Disables colored output"))' \
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
'(-v --verbose)-q[Do not print any output]' \
'(-v --verbose)--quiet[Do not print any output]' \
'(-q --quiet)-v[Use verbose output]' \
'(-q --quiet)--verbose[Use verbose output]' \
'(--color)--no-color[Disable colors; provided for compatibility with \`pip\`]' \
'-n[Avoid reading from or writing to the cache]' \
'--no-cache[Avoid reading from or writing to the cache]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'-V[Print version]' \
'--version[Print version]' \
'*::package -- The packages to remove from the cache:' \
&& ret=0
;;
(version)
_arguments "${_arguments_options[@]}" \
'--output-format=[]:OUTPUT_FORMAT:(text json)' \
'(--no-color)--color=[Control colors in output]:COLOR:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
always\:"Enables colored output regardless of the detected environment"
never\:"Disables colored output"))' \
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
'(-v --verbose)-q[Do not print any output]' \
'(-v --verbose)--quiet[Do not print any output]' \
'(-q --quiet)-v[Use verbose output]' \
'(-q --quiet)--verbose[Use verbose output]' \
'(--color)--no-color[Disable colors; provided for compatibility with \`pip\`]' \
'-n[Avoid reading from or writing to the cache]' \
'--no-cache[Avoid reading from or writing to the cache]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'-V[Print version]' \
'--version[Print version]' \
&& ret=0
;;
(generate-shell-completion)
_arguments "${_arguments_options[@]}" \
'(--no-color)--color=[Control colors in output]:COLOR:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
always\:"Enables colored output regardless of the detected environment"
never\:"Disables colored output"))' \
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
'(-v --verbose)-q[Do not print any output]' \
'(-v --verbose)--quiet[Do not print any output]' \
'(-q --quiet)-v[Use verbose output]' \
'(-q --quiet)--verbose[Use verbose output]' \
'(--color)--no-color[Disable colors; provided for compatibility with \`pip\`]' \
'-n[Avoid reading from or writing to the cache]' \
'--no-cache[Avoid reading from or writing to the cache]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'-V[Print version]' \
'--version[Print version]' \
':shell:(bash elvish fig fish nushell powershell zsh)' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" \
":: :_uv__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:uv-help-command-$line[1]:"
        case $line[1] in
            (pip)
_arguments "${_arguments_options[@]}" \
":: :_uv__help__pip_commands" \
"*::: :->pip" \
&& ret=0

    case $state in
    (pip)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:uv-help-pip-command-$line[1]:"
        case $line[1] in
            (compile)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(sync)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(install)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(uninstall)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(freeze)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
        esac
    ;;
esac
;;
(venv)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(cache)
_arguments "${_arguments_options[@]}" \
":: :_uv__help__cache_commands" \
"*::: :->cache" \
&& ret=0

    case $state in
    (cache)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:uv-help-cache-command-$line[1]:"
        case $line[1] in
            (clean)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(dir)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
        esac
    ;;
esac
;;
(clean)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(version)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(generate-shell-completion)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
}

(( $+functions[_uv_commands] )) ||
_uv_commands() {
    local commands; commands=(
'pip:Resolve and install Python packages' \
'venv:Create a virtual environment' \
'cache:Manage the cache' \
'clean:Remove all items from the cache' \
'version:Display uv'\''s version' \
'generate-shell-completion:Generate shell completion' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'uv commands' commands "$@"
}
(( $+functions[_uv__cache_commands] )) ||
_uv__cache_commands() {
    local commands; commands=(
'clean:Remove all items from the cache' \
'dir:Show the cache directory' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'uv cache commands' commands "$@"
}
(( $+functions[_uv__help__cache_commands] )) ||
_uv__help__cache_commands() {
    local commands; commands=(
'clean:Remove all items from the cache' \
'dir:Show the cache directory' \
    )
    _describe -t commands 'uv help cache commands' commands "$@"
}
(( $+functions[_uv__cache__clean_commands] )) ||
_uv__cache__clean_commands() {
    local commands; commands=()
    _describe -t commands 'uv cache clean commands' commands "$@"
}
(( $+functions[_uv__cache__help__clean_commands] )) ||
_uv__cache__help__clean_commands() {
    local commands; commands=()
    _describe -t commands 'uv cache help clean commands' commands "$@"
}
(( $+functions[_uv__clean_commands] )) ||
_uv__clean_commands() {
    local commands; commands=()
    _describe -t commands 'uv clean commands' commands "$@"
}
(( $+functions[_uv__help__cache__clean_commands] )) ||
_uv__help__cache__clean_commands() {
    local commands; commands=()
    _describe -t commands 'uv help cache clean commands' commands "$@"
}
(( $+functions[_uv__help__clean_commands] )) ||
_uv__help__clean_commands() {
    local commands; commands=()
    _describe -t commands 'uv help clean commands' commands "$@"
}
(( $+functions[_uv__help__pip__compile_commands] )) ||
_uv__help__pip__compile_commands() {
    local commands; commands=()
    _describe -t commands 'uv help pip compile commands' commands "$@"
}
(( $+functions[_uv__pip__compile_commands] )) ||
_uv__pip__compile_commands() {
    local commands; commands=()
    _describe -t commands 'uv pip compile commands' commands "$@"
}
(( $+functions[_uv__pip__help__compile_commands] )) ||
_uv__pip__help__compile_commands() {
    local commands; commands=()
    _describe -t commands 'uv pip help compile commands' commands "$@"
}
(( $+functions[_uv__cache__dir_commands] )) ||
_uv__cache__dir_commands() {
    local commands; commands=()
    _describe -t commands 'uv cache dir commands' commands "$@"
}
(( $+functions[_uv__cache__help__dir_commands] )) ||
_uv__cache__help__dir_commands() {
    local commands; commands=()
    _describe -t commands 'uv cache help dir commands' commands "$@"
}
(( $+functions[_uv__help__cache__dir_commands] )) ||
_uv__help__cache__dir_commands() {
    local commands; commands=()
    _describe -t commands 'uv help cache dir commands' commands "$@"
}
(( $+functions[_uv__help__pip__freeze_commands] )) ||
_uv__help__pip__freeze_commands() {
    local commands; commands=()
    _describe -t commands 'uv help pip freeze commands' commands "$@"
}
(( $+functions[_uv__pip__freeze_commands] )) ||
_uv__pip__freeze_commands() {
    local commands; commands=()
    _describe -t commands 'uv pip freeze commands' commands "$@"
}
(( $+functions[_uv__pip__help__freeze_commands] )) ||
_uv__pip__help__freeze_commands() {
    local commands; commands=()
    _describe -t commands 'uv pip help freeze commands' commands "$@"
}
(( $+functions[_uv__generate-shell-completion_commands] )) ||
_uv__generate-shell-completion_commands() {
    local commands; commands=()
    _describe -t commands 'uv generate-shell-completion commands' commands "$@"
}
(( $+functions[_uv__help__generate-shell-completion_commands] )) ||
_uv__help__generate-shell-completion_commands() {
    local commands; commands=()
    _describe -t commands 'uv help generate-shell-completion commands' commands "$@"
}
(( $+functions[_uv__cache__help_commands] )) ||
_uv__cache__help_commands() {
    local commands; commands=(
'clean:Remove all items from the cache' \
'dir:Show the cache directory' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'uv cache help commands' commands "$@"
}
(( $+functions[_uv__cache__help__help_commands] )) ||
_uv__cache__help__help_commands() {
    local commands; commands=()
    _describe -t commands 'uv cache help help commands' commands "$@"
}
(( $+functions[_uv__help_commands] )) ||
_uv__help_commands() {
    local commands; commands=(
'pip:Resolve and install Python packages' \
'venv:Create a virtual environment' \
'cache:Manage the cache' \
'clean:Remove all items from the cache' \
'version:Display uv'\''s version' \
'generate-shell-completion:Generate shell completion' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'uv help commands' commands "$@"
}
(( $+functions[_uv__help__help_commands] )) ||
_uv__help__help_commands() {
    local commands; commands=()
    _describe -t commands 'uv help help commands' commands "$@"
}
(( $+functions[_uv__pip__help_commands] )) ||
_uv__pip__help_commands() {
    local commands; commands=(
'compile:Compile a \`requirements.in\` file to a \`requirements.txt\` file' \
'sync:Sync dependencies from a \`requirements.txt\` file' \
'install:Install packages into the current environment' \
'uninstall:Uninstall packages from the current environment' \
'freeze:Enumerate the installed packages in the current environment' \
'list:Enumerate the installed packages in the current environment' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'uv pip help commands' commands "$@"
}
(( $+functions[_uv__pip__help__help_commands] )) ||
_uv__pip__help__help_commands() {
    local commands; commands=()
    _describe -t commands 'uv pip help help commands' commands "$@"
}
(( $+functions[_uv__help__pip__install_commands] )) ||
_uv__help__pip__install_commands() {
    local commands; commands=()
    _describe -t commands 'uv help pip install commands' commands "$@"
}
(( $+functions[_uv__pip__help__install_commands] )) ||
_uv__pip__help__install_commands() {
    local commands; commands=()
    _describe -t commands 'uv pip help install commands' commands "$@"
}
(( $+functions[_uv__pip__install_commands] )) ||
_uv__pip__install_commands() {
    local commands; commands=()
    _describe -t commands 'uv pip install commands' commands "$@"
}
(( $+functions[_uv__help__pip__list_commands] )) ||
_uv__help__pip__list_commands() {
    local commands; commands=()
    _describe -t commands 'uv help pip list commands' commands "$@"
}
(( $+functions[_uv__pip__help__list_commands] )) ||
_uv__pip__help__list_commands() {
    local commands; commands=()
    _describe -t commands 'uv pip help list commands' commands "$@"
}
(( $+functions[_uv__pip__list_commands] )) ||
_uv__pip__list_commands() {
    local commands; commands=()
    _describe -t commands 'uv pip list commands' commands "$@"
}
(( $+functions[_uv__help__pip_commands] )) ||
_uv__help__pip_commands() {
    local commands; commands=(
'compile:Compile a \`requirements.in\` file to a \`requirements.txt\` file' \
'sync:Sync dependencies from a \`requirements.txt\` file' \
'install:Install packages into the current environment' \
'uninstall:Uninstall packages from the current environment' \
'freeze:Enumerate the installed packages in the current environment' \
'list:Enumerate the installed packages in the current environment' \
    )
    _describe -t commands 'uv help pip commands' commands "$@"
}
(( $+functions[_uv__pip_commands] )) ||
_uv__pip_commands() {
    local commands; commands=(
'compile:Compile a \`requirements.in\` file to a \`requirements.txt\` file' \
'sync:Sync dependencies from a \`requirements.txt\` file' \
'install:Install packages into the current environment' \
'uninstall:Uninstall packages from the current environment' \
'freeze:Enumerate the installed packages in the current environment' \
'list:Enumerate the installed packages in the current environment' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'uv pip commands' commands "$@"
}
(( $+functions[_uv__help__pip__sync_commands] )) ||
_uv__help__pip__sync_commands() {
    local commands; commands=()
    _describe -t commands 'uv help pip sync commands' commands "$@"
}
(( $+functions[_uv__pip__help__sync_commands] )) ||
_uv__pip__help__sync_commands() {
    local commands; commands=()
    _describe -t commands 'uv pip help sync commands' commands "$@"
}
(( $+functions[_uv__pip__sync_commands] )) ||
_uv__pip__sync_commands() {
    local commands; commands=()
    _describe -t commands 'uv pip sync commands' commands "$@"
}
(( $+functions[_uv__help__pip__uninstall_commands] )) ||
_uv__help__pip__uninstall_commands() {
    local commands; commands=()
    _describe -t commands 'uv help pip uninstall commands' commands "$@"
}
(( $+functions[_uv__pip__help__uninstall_commands] )) ||
_uv__pip__help__uninstall_commands() {
    local commands; commands=()
    _describe -t commands 'uv pip help uninstall commands' commands "$@"
}
(( $+functions[_uv__pip__uninstall_commands] )) ||
_uv__pip__uninstall_commands() {
    local commands; commands=()
    _describe -t commands 'uv pip uninstall commands' commands "$@"
}
(( $+functions[_uv__help__venv_commands] )) ||
_uv__help__venv_commands() {
    local commands; commands=()
    _describe -t commands 'uv help venv commands' commands "$@"
}
(( $+functions[_uv__venv_commands] )) ||
_uv__venv_commands() {
    local commands; commands=()
    _describe -t commands 'uv venv commands' commands "$@"
}
(( $+functions[_uv__help__version_commands] )) ||
_uv__help__version_commands() {
    local commands; commands=()
    _describe -t commands 'uv help version commands' commands "$@"
}
(( $+functions[_uv__version_commands] )) ||
_uv__version_commands() {
    local commands; commands=()
    _describe -t commands 'uv version commands' commands "$@"
}

if [ "$funcstack[1]" = "_uv" ]; then
    _uv "$@"
else
    compdef _uv uv
fi
