#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\`]' \
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
'-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\`]' \
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
'-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"))' \
'--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' \
'--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"))' \
'--custom-compile-command=[Change header comment to reflect custom command wrapping \`uv pip compile\`]:CUSTOM_COMPILE_COMMAND: ' \
'*--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: ' \
'--index-strategy=[The strategy to use when resolving against multiple index URLs]:INDEX_STRATEGY:((first-match\:"Only use results from the first index that returns a match for a given package name"
unsafe-any-match\:"Search for every package name across all indexes, exhausting the versions from the first index before moving on to the next"))' \
'--keyring-provider=[Attempt to use \`keyring\` for authentication for index urls]:KEYRING_PROVIDER:((disabled\:"Do not use keyring for credential lookup"
subprocess\:"Use the \`keyring\` command for credential lookup"))' \
'*-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: ' \
'--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]' \
'--pre[]' \
'--no-strip-extras[Include extras in the output file]' \
'--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]' \
'--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\`]' \
'--no-build-isolation[Disable isolation when building source distributions]' \
'(--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]' \
'--emit-marker-expression[Whether to emit a marker string indicating when it is known that the resulting set of pinned dependencies is valid]' \
'--emit-index-annotation[Include comment annotations indicating the index used to resolve each package (e.g., \`# from https\://pypi.org/simple\`)]' \
'--allow-unsafe[]' \
'--no-allow-unsafe[]' \
'--reuse-hashes[]' \
'--no-reuse-hashes[]' \
'--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[]' \
'(-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\`]' \
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
'-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: ' \
'--index-strategy=[The strategy to use when resolving against multiple index URLs]:INDEX_STRATEGY:((first-match\:"Only use results from the first index that returns a match for a given package name"
unsafe-any-match\:"Search for every package name across all indexes, exhausting the versions from the first index before moving on to the next"))' \
'--keyring-provider=[Attempt to use \`keyring\` for authentication for index urls]:KEYRING_PROVIDER:((disabled\:"Do not use keyring for credential lookup"
subprocess\:"Use the \`keyring\` command for credential lookup"))' \
'-p+[The Python interpreter into which packages should be installed.]:PYTHON: ' \
'--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]' \
'--no-index[Ignore the registry index (e.g., PyPI), instead relying on direct URL dependencies and those discovered via \`--find-links\`]' \
'--require-hashes[Require a matching hash for each requirement]' \
'--system[Install packages into the system Python]' \
'--break-system-packages[Allow \`uv\` to modify an \`EXTERNALLY-MANAGED\` Python installation]' \
'--legacy-setup-py[Use legacy \`setuptools\` behavior when building source distributions without a \`pyproject.toml\`]' \
'--no-build-isolation[Disable isolation when building source distributions]' \
'(--no-binary --only-binary)--no-build[Don'\''t build source distributions]' \
'--compile[Compile Python files to bytecode]' \
'(--compile)--no-compile[Don'\''t compile Python files to bytecode]' \
'--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\`]' \
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
'-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"))' \
'--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"))' \
'-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: ' \
'--index-strategy=[The strategy to use when resolving against multiple index URLs]:INDEX_STRATEGY:((first-match\:"Only use results from the first index that returns a match for a given package name"
unsafe-any-match\:"Search for every package name across all indexes, exhausting the versions from the first index before moving on to the next"))' \
'--keyring-provider=[Attempt to use \`keyring\` for authentication for index urls]:KEYRING_PROVIDER:((disabled\:"Do not use keyring for credential lookup"
subprocess\:"Use the \`keyring\` command for credential lookup"))' \
'-p+[The Python interpreter into which packages should be installed.]:PYTHON: ' \
'--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]' \
'--pre[]' \
'--no-index[Ignore the registry index (e.g., PyPI), instead relying on direct URL dependencies and those discovered via \`--find-links\`]' \
'--require-hashes[Require a matching hash for each requirement]' \
'--system[Install packages into the system Python]' \
'--break-system-packages[Allow \`uv\` to modify an \`EXTERNALLY-MANAGED\` Python installation]' \
'--legacy-setup-py[Use legacy \`setuptools\` behavior when building source distributions without a \`pyproject.toml\`]' \
'--no-build-isolation[Disable isolation when building source distributions]' \
'(--no-binary --only-binary)--no-build[Don'\''t build source distributions]' \
'--compile[Compile Python files to bytecode]' \
'(--compile)--no-compile[Don'\''t compile Python files to bytecode]' \
'--strict[Validate the virtual environment after completing the installation, to detect packages with missing dependencies or other issues]' \
'--dry-run[Perform a dry run, i.e., don'\''t actually install anything but resolve the dependencies and print the resulting plan]' \
'(-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\`]' \
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
'-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' \
'-p+[The Python interpreter from which packages should be uninstalled.]:PYTHON: ' \
'--python=[The Python interpreter from which packages should be uninstalled.]:PYTHON: ' \
'--keyring-provider=[Attempt to use \`keyring\` for authentication for remote requirements files]:KEYRING_PROVIDER:((disabled\:"Do not use keyring for credential lookup"
subprocess\:"Use the \`keyring\` command for credential lookup"))' \
'(--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' \
'--system[Use the system Python to uninstall packages]' \
'--break-system-packages[Allow \`uv\` to modify an \`EXTERNALLY-MANAGED\` Python installation]' \
'--offline[Run offline, i.e., without accessing the network]' \
'(-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\`]' \
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
'-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[@]}" \
'-p+[The Python interpreter for which packages should be listed.]:PYTHON: ' \
'--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' \
'--exclude-editable[Exclude any editable packages from output]' \
'--strict[Validate the virtual environment, to detect packages with missing dependencies or other issues]' \
'--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\`]' \
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
'-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: ' \
'--format=[Select the output format between\: \`columns\` (default), \`freeze\`, or \`json\`]:FORMAT:((columns\:"Display the list of packages in a human-readable table"
freeze\:"Display the list of packages in a \`pip freeze\`-like format, with one package per line alongside its version"
json\:"Display the list of packages in a machine-readable JSON format"))' \
'-p+[The Python interpreter for which packages should be listed.]:PYTHON: ' \
'--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' \
'-e[Only include editable projects]' \
'--editable[Only include editable projects]' \
'--exclude-editable[Exclude any editable packages from output]' \
'--strict[Validate the virtual environment, to detect packages with missing dependencies or other issues]' \
'--system[List packages for the system Python]' \
'--outdated[]' \
'(-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\`]' \
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
'-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
;;
(show)
_arguments "${_arguments_options[@]}" \
'-p+[The Python interpreter for which packages should be listed.]:PYTHON: ' \
'--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]' \
'--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\`]' \
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
'-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 package(s) to display:' \
&& ret=0
;;
(check)
_arguments "${_arguments_options[@]}" \
'-p+[The Python interpreter for which packages should be listed.]:PYTHON: ' \
'--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' \
'--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\`]' \
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
'-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
;;
(show)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(check)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(venv)
_arguments "${_arguments_options[@]}" \
'-p+[The Python interpreter to use for the virtual environment.]:PYTHON: ' \
'--python=[The Python interpreter to use for the virtual environment.]:PYTHON: ' \
'--prompt=[Provide an alternative prompt prefix for the virtual environment.]:PROMPT: ' \
'--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: ' \
'--index-strategy=[The strategy to use when resolving against multiple index URLs]:INDEX_STRATEGY:((first-match\:"Only use results from the first index that returns a match for a given package name"
unsafe-any-match\:"Search for every package name across all indexes, exhausting the versions from the first index before moving on to the next"))' \
'--keyring-provider=[Attempt to use \`keyring\` for authentication for index urls]:KEYRING_PROVIDER:((disabled\:"Do not use keyring for credential lookup"
subprocess\:"Use the \`keyring\` command for credential lookup"))' \
'--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' \
'--system[Use the system Python to uninstall packages]' \
'--seed[Install seed packages (\`pip\`, \`setuptools\`, and \`wheel\`) into the virtual environment]' \
'--system-site-packages[Give the virtual environment access to the system site packages directory]' \
'--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\`]' \
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
'-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\`]' \
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
'-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\`]' \
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
'-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
;;
(prune)
_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\`]' \
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
'-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
;;
(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\`]' \
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
'-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
;;
(prune)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(dir)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(self)
_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\`]' \
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
'-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__self_commands" \
"*::: :->self" \
&& ret=0

    case $state in
    (self)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:uv-self-command-$line[1]:"
        case $line[1] in
            (update)
_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\`]' \
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
'-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__self__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:uv-self-help-command-$line[1]:"
        case $line[1] in
            (update)
_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\`]' \
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
'-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\`]' \
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
'-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\`]' \
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
'-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
;;
(show)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(check)
_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
;;
(prune)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(dir)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
        esac
    ;;
esac
;;
(self)
_arguments "${_arguments_options[@]}" \
":: :_uv__help__self_commands" \
"*::: :->self" \
&& ret=0

    case $state in
    (self)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:uv-help-self-command-$line[1]:"
        case $line[1] in
            (update)
_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' \
'self:Manage the \`uv\` executable' \
'clean:Clear the cache, removing all entries or those linked to specific packages' \
'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:Clear the cache, removing all entries or those linked to specific packages' \
'prune:Prune all unreachable objects 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:Clear the cache, removing all entries or those linked to specific packages' \
'prune:Prune all unreachable objects from the cache' \
'dir:Show the cache directory' \
    )
    _describe -t commands 'uv help cache commands' commands "$@"
}
(( $+functions[_uv__help__pip__check_commands] )) ||
_uv__help__pip__check_commands() {
    local commands; commands=()
    _describe -t commands 'uv help pip check commands' commands "$@"
}
(( $+functions[_uv__pip__check_commands] )) ||
_uv__pip__check_commands() {
    local commands; commands=()
    _describe -t commands 'uv pip check commands' commands "$@"
}
(( $+functions[_uv__pip__help__check_commands] )) ||
_uv__pip__help__check_commands() {
    local commands; commands=()
    _describe -t commands 'uv pip help check 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:Clear the cache, removing all entries or those linked to specific packages' \
'prune:Prune all unreachable objects 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' \
'self:Manage the \`uv\` executable' \
'clean:Clear the cache, removing all entries or those linked to specific packages' \
'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' \
'show:Show information about one or more installed packages' \
'check:Verify installed packages have compatible dependencies' \
'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__self__help_commands] )) ||
_uv__self__help_commands() {
    local commands; commands=(
'update:Update \`uv\` to the latest version' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'uv self help commands' commands "$@"
}
(( $+functions[_uv__self__help__help_commands] )) ||
_uv__self__help__help_commands() {
    local commands; commands=()
    _describe -t commands 'uv self 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' \
'show:Show information about one or more installed packages' \
'check:Verify installed packages have compatible dependencies' \
    )
    _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' \
'show:Show information about one or more installed packages' \
'check:Verify installed packages have compatible dependencies' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'uv pip commands' commands "$@"
}
(( $+functions[_uv__cache__help__prune_commands] )) ||
_uv__cache__help__prune_commands() {
    local commands; commands=()
    _describe -t commands 'uv cache help prune commands' commands "$@"
}
(( $+functions[_uv__cache__prune_commands] )) ||
_uv__cache__prune_commands() {
    local commands; commands=()
    _describe -t commands 'uv cache prune commands' commands "$@"
}
(( $+functions[_uv__help__cache__prune_commands] )) ||
_uv__help__cache__prune_commands() {
    local commands; commands=()
    _describe -t commands 'uv help cache prune commands' commands "$@"
}
(( $+functions[_uv__help__self_commands] )) ||
_uv__help__self_commands() {
    local commands; commands=(
'update:Update \`uv\` to the latest version' \
    )
    _describe -t commands 'uv help self commands' commands "$@"
}
(( $+functions[_uv__self_commands] )) ||
_uv__self_commands() {
    local commands; commands=(
'update:Update \`uv\` to the latest version' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'uv self commands' commands "$@"
}
(( $+functions[_uv__help__pip__show_commands] )) ||
_uv__help__pip__show_commands() {
    local commands; commands=()
    _describe -t commands 'uv help pip show commands' commands "$@"
}
(( $+functions[_uv__pip__help__show_commands] )) ||
_uv__pip__help__show_commands() {
    local commands; commands=()
    _describe -t commands 'uv pip help show commands' commands "$@"
}
(( $+functions[_uv__pip__show_commands] )) ||
_uv__pip__show_commands() {
    local commands; commands=()
    _describe -t commands 'uv pip show 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__self__update_commands] )) ||
_uv__help__self__update_commands() {
    local commands; commands=()
    _describe -t commands 'uv help self update commands' commands "$@"
}
(( $+functions[_uv__self__help__update_commands] )) ||
_uv__self__help__update_commands() {
    local commands; commands=()
    _describe -t commands 'uv self help update commands' commands "$@"
}
(( $+functions[_uv__self__update_commands] )) ||
_uv__self__update_commands() {
    local commands; commands=()
    _describe -t commands 'uv self update 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
