diff --git a/.dotter/executor.toml b/.dotter/executor.toml new file mode 100644 index 00000000..e60c9835 --- /dev/null +++ b/.dotter/executor.toml @@ -0,0 +1,10 @@ +packages = [ "x11" ] + +[variables] +dpi = "96" +font_size = "10" +terminal = "alacritty" +browser = "floorp" + +[files] +"config/niri/config-desktop.kdl" = "~/.config/niri/config.kdl" diff --git a/config/zsh/completions/_bat b/config/zsh/completions/_bat new file mode 100644 index 00000000..3b3f471e --- /dev/null +++ b/config/zsh/completions/_bat @@ -0,0 +1,116 @@ +#compdef bat + +local curcontext="$curcontext" ret=1 +local -a state state_descr line +typeset -A opt_args + +(( $+functions[_bat_cache_subcommand] )) || +_bat_cache_subcommand() { + local -a args + args=( + '(-b --build -c --clear)'{-b,--build}'[initialize or update the syntax/theme cache]' + '(-b --build -c --clear)'{-c,--clear}'[remove the cached syntax definitions and themes]' + --source='[specify directory to load syntaxes and themes from]:directory:_files -/' + --target='[specify directory to store the cached syntax and theme set in]:directory:_files -/' + --blank'[create completely new syntax and theme sets]' + --acknowledgements'[build acknowledgements.bin]' + '(: -)'{-h,--help}'[show help information]' + ) + + _arguments -S -s $args +} + +(( $+functions[_bat_main] )) || +_bat_main() { + local -a args + args=( + '(-A --show-all)'{-A,--show-all}'[show non-printable characters (space, tab, newline, ..)]' + --nonprintable-notation='[specify how to display non-printable characters when using --show-all]:notation:(caret unicode)' + \*{-p,--plain}'[show plain style (alias for `--style=plain`), repeat twice to disable automatic paging (alias for `--paging=never`)]' + '(-l --language)'{-l+,--language=}'[set the language for syntax highlighting]:language:->languages' + \*{-H+,--highlight-line=}'[highlight specified block of lines]:start\:end' + \*--file-name='[specify the name to display for a file]:name:_files' + '(-d --diff)'--diff'[only show lines that have been added/removed/modified]' + --diff-context='[specify lines of context around added/removed/modified lines when using `--diff`]:lines' + --tabs='[set the tab width]:tab width [4]' + --wrap='[specify the text-wrapping mode]:mode [auto]:(auto never character)' + '!(--wrap)'{-S,--chop-long-lines} + --terminal-width='[explicitly set the width of the terminal instead of determining it automatically]:width' + '(-n --number --diff --diff-context)'{-n,--number}'[show line numbers]' + --color='[specify when to use colors]:when:(auto never always)' + --italic-text='[use italics in output]:when:(always never)' + --decorations='[specify when to show the decorations]:when:(auto never always)' + --paging='[specify when to use the pager]:when:(auto never always)' + '(-m --map-syntax)'{-m+,--map-syntax=}'[map a glob pattern to an existing syntax name]: :->syntax-maps' + '(--theme)'--theme='[set the color theme for syntax highlighting]:theme:->theme_preferences' + '(--theme-dark)'--theme-dark='[set the color theme for syntax highlighting for dark backgrounds]:theme:->themes' + '(--theme-light)'--theme-light='[set the color theme for syntax highlighting for light backgrounds]:theme:->themes' + '(: --list-themes --list-languages -L)'--list-themes'[show all supported highlighting themes]' + --style='[comma-separated list of style elements to display]: : _values "style [default]" + default auto full plain changes header header-filename header-filesize grid rule numbers snip' + \*{-r+,--line-range=}'[only print the specified line range]:start\:end' + '(* -)'{-L,--list-languages}'[display all supported languages]' + -P'[disable paging]' + "--no-config[don't use the configuration file]" + "--no-custom-assets[don't load custom assets]" + '(--no-lessopen)'--lessopen'[enable the $LESSOPEN preprocessor]' + '(--lessopen)'--no-lessopen'[disable the $LESSOPEN preprocessor if enabled (overrides --lessopen)]' + '(* -)'--config-dir"[show bat's configuration directory]" + '(* -)'--config-file'[show path to the configuration file]' + '(* -)'--generate-config-file'[generate a default configuration file]' + '(* -)'--cache-dir"[show bat's cache directory]" + '(* -)'{-h,--help}'[show help information]' + '(* -)'{-V,--version}'[show version information]' + '*: :{ _files || compadd cache }' + ) + + _arguments -S -s $args && ret=0 + + case "$state" in + syntax-maps) + if ! compset -P '*:'; then + _message -e patterns 'glob pattern:language' + return + fi + ;& # fall-through + + languages) + local IFS=$'\n' + local -a languages + languages=( $(bat --list-languages | awk -F':|,' '{ for (i = 1; i <= NF; ++i) printf("%s:%s\n", $i, $1) }') ) + + _describe 'language' languages && ret=0 + ;; + + themes) + local -a themes expl + themes=(${(f)"$(_call_program themes bat --list-themes)"} ) + + _wanted themes expl 'theme' compadd -a themes && ret=0 + ;; + theme_preferences) + local -a themes expl + themes=(auto dark light auto:always auto:system ${(f)"$(_call_program themes bat --list-themes)"} ) + + _wanted themes expl 'theme' compadd -a themes && ret=0 + ;; + esac + + return ret +} + +case $words[2] in + cache) + ## Completion of the 'cache' command itself is removed for better UX + ## See https://github.com/sharkdp/bat/issues/2085#issuecomment-1271646802 + shift words + (( CURRENT-- )) + curcontext="${curcontext%:*}-${words[1]}:" + _bat_cache_subcommand + ;; + + *) + _bat_main + ;; +esac + diff --git a/config/zsh/completions/_deno b/config/zsh/completions/_deno new file mode 100644 index 00000000..805dcf56 --- /dev/null +++ b/config/zsh/completions/_deno @@ -0,0 +1,2343 @@ +#compdef deno + +autoload -U is-at-least + +_deno() { + 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-check=[Skip type-checking. If the value of "remote" is supplied, diagnostic errors from remote modules will be ignored]' \ +'--import-map=[Load import map file from local file or remote URL Docs\: https\://docs.deno.com/runtime/manual/basics/import_maps]:FILE:_files' \ +'--node-modules-dir=[Sets the node modules management mode for npm packages]' \ +'--vendor=[Toggles local vendor folder usage for remote modules and a node_modules folder for npm packages]' \ +'-c+[Configure different aspects of deno including TypeScript, linting, and code formatting Typically the configuration file will be called \`deno.json\` or \`deno.jsonc\` and automatically detected; in that case this flag is not necessary. Docs\: https\://docs.deno.com/go/config]:FILE:_files' \ +'--config=[Configure different aspects of deno including TypeScript, linting, and code formatting Typically the configuration file will be called \`deno.json\` or \`deno.jsonc\` and automatically detected; in that case this flag is not necessary. Docs\: https\://docs.deno.com/go/config]:FILE:_files' \ +'*-r+[Reload source code cache (recompile TypeScript) no value Reload everything jsr\:@std/http/file-server,jsr\:@std/assert/assert-equals Reloads specific modules npm\: Reload all npm modules npm\:chalk Reload specific npm module]' \ +'*--reload=[Reload source code cache (recompile TypeScript) no value Reload everything jsr\:@std/http/file-server,jsr\:@std/assert/assert-equals Reloads specific modules npm\: Reload all npm modules npm\:chalk Reload specific npm module]' \ +'--lock=[Check the specified lock file. (If value is not provided, defaults to "./deno.lock")]' \ +'--cert=[Load certificate authority from PEM encoded file]:FILE:_files' \ +'--unsafely-ignore-certificate-errors=[DANGER\: Disables verification of TLS certificates]' \ +'*-R+[Allow file system read access. Optionally specify allowed paths]' \ +'*--allow-read=[Allow file system read access. Optionally specify allowed paths]' \ +'*--deny-read=[Deny file system read access. Optionally specify denied paths]' \ +'*-W+[Allow file system write access. Optionally specify allowed paths]' \ +'*--allow-write=[Allow file system write access. Optionally specify allowed paths]' \ +'*--deny-write=[Deny file system write access. Optionally specify denied paths]' \ +'-N+[Allow network access. Optionally specify allowed IP addresses and host names, with ports as necessary]' \ +'--allow-net=[Allow network access. Optionally specify allowed IP addresses and host names, with ports as necessary]' \ +'--deny-net=[Deny network access. Optionally specify denied IP addresses and host names, with ports as necessary]' \ +'-E+[Allow access to system environment information. Optionally specify accessible environment variables]' \ +'--allow-env=[Allow access to system environment information. Optionally specify accessible environment variables]' \ +'--deny-env=[Deny access to system environment information. Optionally specify accessible environment variables]' \ +'-S+[Allow access to OS information. Optionally allow specific APIs by function name]' \ +'--allow-sys=[Allow access to OS information. Optionally allow specific APIs by function name]' \ +'--deny-sys=[Deny access to OS information. Optionally deny specific APIs by function name]' \ +'--allow-run=[Allow running subprocesses. Optionally specify allowed runnable program names]' \ +'--deny-run=[Deny running subprocesses. Optionally specify denied runnable program names]' \ +'*--allow-ffi=[(Unstable) Allow loading dynamic libraries. Optionally specify allowed directories or files]' \ +'*--deny-ffi=[(Unstable) Deny loading dynamic libraries. Optionally specify denied directories or files]' \ +'-I+[Allow importing from remote hosts. Optionally specify allowed IP addresses and host names, with ports as necessary. Default value\: deno.land\:443,jsr.io\:443,esm.sh\:443,cdn.jsdelivr.net\:443,raw.githubusercontent.com\:443,user.githubusercontent.com\:443]' \ +'--allow-import=[Allow importing from remote hosts. Optionally specify allowed IP addresses and host names, with ports as necessary. Default value\: deno.land\:443,jsr.io\:443,esm.sh\:443,cdn.jsdelivr.net\:443,raw.githubusercontent.com\:443,user.githubusercontent.com\:443]' \ +'--inspect=[Activate inspector on host\:port \[default\: 127.0.0.1\:9229\]]' \ +'--inspect-brk=[Activate inspector on host\:port, wait for debugger to connect and break at the start of user script]' \ +'--inspect-wait=[Activate inspector on host\:port and wait for debugger to connect before running user code]' \ +'*--allow-scripts=[Allow running npm lifecycle scripts for the given packages Note\: Scripts will only be executed when using a node_modules directory (\`--node-modules-dir\`)]' \ +'--frozen=[Error out if lockfile is out of date]' \ +'--location=[Value of globalThis.location used by some web APIs]:HREF:_urls' \ +'--v8-flags=[To see a list of all available flags use --v8-flags=--help Flags can also be set via the DENO_V8_FLAGS environment variable. Any flags set with this flag are appended after the DENO_V8_FLAGS environment variable]' \ +'--seed=[Set the random number generator seed]:NUMBER: ' \ +'--strace-ops=[Trace low-level op calls]' \ +'(--no-check)--check=[Enable type-checking. This subcommand does not type-check by default If the value of "all" is supplied, remote modules will be included. Alternatively, the '\''deno check'\'' subcommand can be used]' \ +'*--watch=[Watch for file changes and restart process automatically. Local files from entry point module graph are watched by default. Additional paths might be watched by passing them as arguments to this flag.]' \ +'(--watch)*--watch-hmr=[Watch for file changes and restart process automatically. Local files from entry point module graph are watched by default. Additional paths might be watched by passing them as arguments to this flag.]' \ +'*--watch-exclude=[Exclude provided files/patterns from watch mode]' \ +'--ext=[Set content type of the supplied file]: :(ts tsx js jsx)' \ +'--env-file=[Load environment variables from local file Only the first environment variable with a given key is used. Existing process environment variables are not overwritten.]' \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'--no-remote[Do not resolve remote modules]' \ +'--no-npm[Do not resolve npm modules]' \ +'(-c --config)--no-config[Disable automatic loading of the configuration file]' \ +'(--lock)--no-lock[Disable auto discovery of the lock file]' \ +'(-R --allow-read -W --allow-write -N --allow-net -E --allow-env --allow-run -S --allow-sys --allow-ffi -I --allow-import)-A[Allow all permissions]' \ +'(-R --allow-read -W --allow-write -N --allow-net -E --allow-env --allow-run -S --allow-sys --allow-ffi -I --allow-import)--allow-all[Allow all permissions]' \ +'--allow-hrtime[REMOVED in Deno 2.0]' \ +'--deny-hrtime[REMOVED in Deno 2.0]' \ +'--no-prompt[Always throw if required permission wasn'\''t passed]' \ +'--cached-only[Require that remote dependencies are already cached]' \ +'--enable-testing-features-do-not-use[INTERNAL\: Enable internal features used during integration testing]' \ +'--no-clear-screen[Do not clear terminal screen when under watch mode]' \ +'--no-code-cache[Disable V8 code cache feature]' \ +'--unstable[Enable all unstable features and APIs. Instead of using this flag, consider enabling individual unstable features To view the list of individual unstable feature flags, run this command again with --help=unstable]' \ +'--unstable-bare-node-builtins[Enable unstable bare node builtins feature]' \ +'--unstable-detect-cjs[Reads the package.json type field in a project to treat .js files as .cjs]' \ +'--unstable-byonm[]' \ +'--unstable-sloppy-imports[Enable unstable resolving of specifiers by extension probing, .js to .ts, and directory probing]' \ +'--unstable-broadcast-channel[Enable unstable \`BroadcastChannel\` API]' \ +'--unstable-cron[Enable unstable Deno.cron API]' \ +'--unstable-ffi[Enable unstable FFI APIs]' \ +'--unstable-fs[Enable unstable file system APIs]' \ +'--unstable-http[Enable unstable HTTP APIs]' \ +'--unstable-kv[Enable unstable Key-Value store APIs]' \ +'--unstable-net[Enable unstable net APIs]' \ +'--unstable-process[Enable unstable process APIs]' \ +'--unstable-temporal[Enable unstable Temporal API]' \ +'--unstable-unsafe-proto[Enable unsafe __proto__ support. This is a security risk.]' \ +'--unstable-webgpu[Enable unstable \`WebGPU\` APIs]' \ +'--unstable-worker-options[Enable unstable Web Worker APIs]' \ +'-V[Print version]' \ +'--version[Print version]' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +'::script_arg -- Script arg:_files' \ +":: :_deno_commands" \ +"*::: :->deno" \ +&& ret=0 + case $state in + (deno) + words=($line[2] "${words[@]}") + (( CURRENT += 1 )) + curcontext="${curcontext%:*:*}:deno-command-$line[2]:" + case $line[2] in + (run) +_arguments "${_arguments_options[@]}" : \ +'--no-check=[Skip type-checking. If the value of "remote" is supplied, diagnostic errors from remote modules will be ignored]' \ +'--import-map=[Load import map file from local file or remote URL Docs\: https\://docs.deno.com/runtime/manual/basics/import_maps]:FILE:_files' \ +'--node-modules-dir=[Sets the node modules management mode for npm packages]' \ +'--vendor=[Toggles local vendor folder usage for remote modules and a node_modules folder for npm packages]' \ +'-c+[Configure different aspects of deno including TypeScript, linting, and code formatting Typically the configuration file will be called \`deno.json\` or \`deno.jsonc\` and automatically detected; in that case this flag is not necessary. Docs\: https\://docs.deno.com/go/config]:FILE:_files' \ +'--config=[Configure different aspects of deno including TypeScript, linting, and code formatting Typically the configuration file will be called \`deno.json\` or \`deno.jsonc\` and automatically detected; in that case this flag is not necessary. Docs\: https\://docs.deno.com/go/config]:FILE:_files' \ +'*-r+[Reload source code cache (recompile TypeScript) no value Reload everything jsr\:@std/http/file-server,jsr\:@std/assert/assert-equals Reloads specific modules npm\: Reload all npm modules npm\:chalk Reload specific npm module]' \ +'*--reload=[Reload source code cache (recompile TypeScript) no value Reload everything jsr\:@std/http/file-server,jsr\:@std/assert/assert-equals Reloads specific modules npm\: Reload all npm modules npm\:chalk Reload specific npm module]' \ +'--lock=[Check the specified lock file. (If value is not provided, defaults to "./deno.lock")]' \ +'--cert=[Load certificate authority from PEM encoded file]:FILE:_files' \ +'--unsafely-ignore-certificate-errors=[DANGER\: Disables verification of TLS certificates]' \ +'*-R+[Allow file system read access. Optionally specify allowed paths]' \ +'*--allow-read=[Allow file system read access. Optionally specify allowed paths]' \ +'*--deny-read=[Deny file system read access. Optionally specify denied paths]' \ +'*-W+[Allow file system write access. Optionally specify allowed paths]' \ +'*--allow-write=[Allow file system write access. Optionally specify allowed paths]' \ +'*--deny-write=[Deny file system write access. Optionally specify denied paths]' \ +'-N+[Allow network access. Optionally specify allowed IP addresses and host names, with ports as necessary]' \ +'--allow-net=[Allow network access. Optionally specify allowed IP addresses and host names, with ports as necessary]' \ +'--deny-net=[Deny network access. Optionally specify denied IP addresses and host names, with ports as necessary]' \ +'-E+[Allow access to system environment information. Optionally specify accessible environment variables]' \ +'--allow-env=[Allow access to system environment information. Optionally specify accessible environment variables]' \ +'--deny-env=[Deny access to system environment information. Optionally specify accessible environment variables]' \ +'-S+[Allow access to OS information. Optionally allow specific APIs by function name]' \ +'--allow-sys=[Allow access to OS information. Optionally allow specific APIs by function name]' \ +'--deny-sys=[Deny access to OS information. Optionally deny specific APIs by function name]' \ +'--allow-run=[Allow running subprocesses. Optionally specify allowed runnable program names]' \ +'--deny-run=[Deny running subprocesses. Optionally specify denied runnable program names]' \ +'*--allow-ffi=[(Unstable) Allow loading dynamic libraries. Optionally specify allowed directories or files]' \ +'*--deny-ffi=[(Unstable) Deny loading dynamic libraries. Optionally specify denied directories or files]' \ +'-I+[Allow importing from remote hosts. Optionally specify allowed IP addresses and host names, with ports as necessary. Default value\: deno.land\:443,jsr.io\:443,esm.sh\:443,cdn.jsdelivr.net\:443,raw.githubusercontent.com\:443,user.githubusercontent.com\:443]' \ +'--allow-import=[Allow importing from remote hosts. Optionally specify allowed IP addresses and host names, with ports as necessary. Default value\: deno.land\:443,jsr.io\:443,esm.sh\:443,cdn.jsdelivr.net\:443,raw.githubusercontent.com\:443,user.githubusercontent.com\:443]' \ +'--inspect=[Activate inspector on host\:port \[default\: 127.0.0.1\:9229\]]' \ +'--inspect-brk=[Activate inspector on host\:port, wait for debugger to connect and break at the start of user script]' \ +'--inspect-wait=[Activate inspector on host\:port and wait for debugger to connect before running user code]' \ +'*--allow-scripts=[Allow running npm lifecycle scripts for the given packages Note\: Scripts will only be executed when using a node_modules directory (\`--node-modules-dir\`)]' \ +'--frozen=[Error out if lockfile is out of date]' \ +'--location=[Value of globalThis.location used by some web APIs]:HREF:_urls' \ +'--v8-flags=[To see a list of all available flags use --v8-flags=--help Flags can also be set via the DENO_V8_FLAGS environment variable. Any flags set with this flag are appended after the DENO_V8_FLAGS environment variable]' \ +'--seed=[Set the random number generator seed]:NUMBER: ' \ +'--strace-ops=[Trace low-level op calls]' \ +'(--no-check)--check=[Enable type-checking. This subcommand does not type-check by default If the value of "all" is supplied, remote modules will be included. Alternatively, the '\''deno check'\'' subcommand can be used]' \ +'*--watch=[Watch for file changes and restart process automatically. Local files from entry point module graph are watched by default. Additional paths might be watched by passing them as arguments to this flag.]' \ +'(--watch)*--watch-hmr=[Watch for file changes and restart process automatically. Local files from entry point module graph are watched by default. Additional paths might be watched by passing them as arguments to this flag.]' \ +'*--watch-exclude=[Exclude provided files/patterns from watch mode]' \ +'--ext=[Set content type of the supplied file]: :(ts tsx js jsx)' \ +'--env-file=[Load environment variables from local file Only the first environment variable with a given key is used. Existing process environment variables are not overwritten.]' \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'--unstable[Enable all unstable features and APIs. Instead of using this flag, consider enabling individual unstable features To view the list of individual unstable feature flags, run this command again with --help=unstable]' \ +'--unstable-bare-node-builtins[Enable unstable bare node builtins feature]' \ +'--unstable-detect-cjs[Reads the package.json type field in a project to treat .js files as .cjs]' \ +'--unstable-byonm[]' \ +'--unstable-sloppy-imports[Enable unstable resolving of specifiers by extension probing, .js to .ts, and directory probing]' \ +'--unstable-broadcast-channel[Enable unstable \`BroadcastChannel\` API]' \ +'--unstable-cron[Enable unstable Deno.cron API]' \ +'--unstable-ffi[Enable unstable FFI APIs]' \ +'--unstable-fs[Enable unstable file system APIs]' \ +'--unstable-http[Enable unstable HTTP APIs]' \ +'--unstable-kv[Enable unstable Key-Value store APIs]' \ +'--unstable-net[Enable unstable net APIs]' \ +'--unstable-process[Enable unstable process APIs]' \ +'--unstable-temporal[Enable unstable Temporal API]' \ +'--unstable-unsafe-proto[Enable unsafe __proto__ support. This is a security risk.]' \ +'--unstable-webgpu[Enable unstable \`WebGPU\` APIs]' \ +'--unstable-worker-options[Enable unstable Web Worker APIs]' \ +'--no-remote[Do not resolve remote modules]' \ +'--no-npm[Do not resolve npm modules]' \ +'(-c --config)--no-config[Disable automatic loading of the configuration file]' \ +'(--lock)--no-lock[Disable auto discovery of the lock file]' \ +'(-R --allow-read -W --allow-write -N --allow-net -E --allow-env --allow-run -S --allow-sys --allow-ffi -I --allow-import)-A[Allow all permissions]' \ +'(-R --allow-read -W --allow-write -N --allow-net -E --allow-env --allow-run -S --allow-sys --allow-ffi -I --allow-import)--allow-all[Allow all permissions]' \ +'--allow-hrtime[REMOVED in Deno 2.0]' \ +'--deny-hrtime[REMOVED in Deno 2.0]' \ +'--no-prompt[Always throw if required permission wasn'\''t passed]' \ +'--cached-only[Require that remote dependencies are already cached]' \ +'--enable-testing-features-do-not-use[INTERNAL\: Enable internal features used during integration testing]' \ +'--no-clear-screen[Do not clear terminal screen when under watch mode]' \ +'--no-code-cache[Disable V8 code cache feature]' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +'*::script_arg -- Script arg:_files' \ +&& ret=0 +;; +(serve) +_arguments "${_arguments_options[@]}" : \ +'--no-check=[Skip type-checking. If the value of "remote" is supplied, diagnostic errors from remote modules will be ignored]' \ +'--import-map=[Load import map file from local file or remote URL Docs\: https\://docs.deno.com/runtime/manual/basics/import_maps]:FILE:_files' \ +'--node-modules-dir=[Sets the node modules management mode for npm packages]' \ +'--vendor=[Toggles local vendor folder usage for remote modules and a node_modules folder for npm packages]' \ +'-c+[Configure different aspects of deno including TypeScript, linting, and code formatting Typically the configuration file will be called \`deno.json\` or \`deno.jsonc\` and automatically detected; in that case this flag is not necessary. Docs\: https\://docs.deno.com/go/config]:FILE:_files' \ +'--config=[Configure different aspects of deno including TypeScript, linting, and code formatting Typically the configuration file will be called \`deno.json\` or \`deno.jsonc\` and automatically detected; in that case this flag is not necessary. Docs\: https\://docs.deno.com/go/config]:FILE:_files' \ +'*-r+[Reload source code cache (recompile TypeScript) no value Reload everything jsr\:@std/http/file-server,jsr\:@std/assert/assert-equals Reloads specific modules npm\: Reload all npm modules npm\:chalk Reload specific npm module]' \ +'*--reload=[Reload source code cache (recompile TypeScript) no value Reload everything jsr\:@std/http/file-server,jsr\:@std/assert/assert-equals Reloads specific modules npm\: Reload all npm modules npm\:chalk Reload specific npm module]' \ +'--lock=[Check the specified lock file. (If value is not provided, defaults to "./deno.lock")]' \ +'--cert=[Load certificate authority from PEM encoded file]:FILE:_files' \ +'--unsafely-ignore-certificate-errors=[DANGER\: Disables verification of TLS certificates]' \ +'*-R+[Allow file system read access. Optionally specify allowed paths]' \ +'*--allow-read=[Allow file system read access. Optionally specify allowed paths]' \ +'*--deny-read=[Deny file system read access. Optionally specify denied paths]' \ +'*-W+[Allow file system write access. Optionally specify allowed paths]' \ +'*--allow-write=[Allow file system write access. Optionally specify allowed paths]' \ +'*--deny-write=[Deny file system write access. Optionally specify denied paths]' \ +'-N+[Allow network access. Optionally specify allowed IP addresses and host names, with ports as necessary]' \ +'--allow-net=[Allow network access. Optionally specify allowed IP addresses and host names, with ports as necessary]' \ +'--deny-net=[Deny network access. Optionally specify denied IP addresses and host names, with ports as necessary]' \ +'-E+[Allow access to system environment information. Optionally specify accessible environment variables]' \ +'--allow-env=[Allow access to system environment information. Optionally specify accessible environment variables]' \ +'--deny-env=[Deny access to system environment information. Optionally specify accessible environment variables]' \ +'-S+[Allow access to OS information. Optionally allow specific APIs by function name]' \ +'--allow-sys=[Allow access to OS information. Optionally allow specific APIs by function name]' \ +'--deny-sys=[Deny access to OS information. Optionally deny specific APIs by function name]' \ +'--allow-run=[Allow running subprocesses. Optionally specify allowed runnable program names]' \ +'--deny-run=[Deny running subprocesses. Optionally specify denied runnable program names]' \ +'*--allow-ffi=[(Unstable) Allow loading dynamic libraries. Optionally specify allowed directories or files]' \ +'*--deny-ffi=[(Unstable) Deny loading dynamic libraries. Optionally specify denied directories or files]' \ +'-I+[Allow importing from remote hosts. Optionally specify allowed IP addresses and host names, with ports as necessary. Default value\: deno.land\:443,jsr.io\:443,esm.sh\:443,cdn.jsdelivr.net\:443,raw.githubusercontent.com\:443,user.githubusercontent.com\:443]' \ +'--allow-import=[Allow importing from remote hosts. Optionally specify allowed IP addresses and host names, with ports as necessary. Default value\: deno.land\:443,jsr.io\:443,esm.sh\:443,cdn.jsdelivr.net\:443,raw.githubusercontent.com\:443,user.githubusercontent.com\:443]' \ +'--inspect=[Activate inspector on host\:port \[default\: 127.0.0.1\:9229\]]' \ +'--inspect-brk=[Activate inspector on host\:port, wait for debugger to connect and break at the start of user script]' \ +'--inspect-wait=[Activate inspector on host\:port and wait for debugger to connect before running user code]' \ +'*--allow-scripts=[Allow running npm lifecycle scripts for the given packages Note\: Scripts will only be executed when using a node_modules directory (\`--node-modules-dir\`)]' \ +'--frozen=[Error out if lockfile is out of date]' \ +'--location=[Value of globalThis.location used by some web APIs]:HREF:_urls' \ +'--v8-flags=[To see a list of all available flags use --v8-flags=--help Flags can also be set via the DENO_V8_FLAGS environment variable. Any flags set with this flag are appended after the DENO_V8_FLAGS environment variable]' \ +'--seed=[Set the random number generator seed]:NUMBER: ' \ +'--strace-ops=[Trace low-level op calls]' \ +'--port=[The TCP port to serve on. Pass 0 to pick a random free port \[default\: 8000\]]: : ' \ +'--host=[The TCP address to serve on, defaulting to 0.0.0.0 (all interfaces)]: : ' \ +'(--no-check)--check=[Enable type-checking. This subcommand does not type-check by default If the value of "all" is supplied, remote modules will be included. Alternatively, the '\''deno check'\'' subcommand can be used]' \ +'*--watch=[Watch for file changes and restart process automatically. Local files from entry point module graph are watched by default. Additional paths might be watched by passing them as arguments to this flag.]' \ +'(--watch)*--watch-hmr=[Watch for file changes and restart process automatically. Local files from entry point module graph are watched by default. Additional paths might be watched by passing them as arguments to this flag.]' \ +'*--watch-exclude=[Exclude provided files/patterns from watch mode]' \ +'--ext=[Set content type of the supplied file]: :(ts tsx js jsx)' \ +'--env-file=[Load environment variables from local file Only the first environment variable with a given key is used. Existing process environment variables are not overwritten.]' \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'--unstable[Enable all unstable features and APIs. Instead of using this flag, consider enabling individual unstable features To view the list of individual unstable feature flags, run this command again with --help=unstable]' \ +'--unstable-bare-node-builtins[Enable unstable bare node builtins feature]' \ +'--unstable-detect-cjs[Reads the package.json type field in a project to treat .js files as .cjs]' \ +'--unstable-byonm[]' \ +'--unstable-sloppy-imports[Enable unstable resolving of specifiers by extension probing, .js to .ts, and directory probing]' \ +'--unstable-broadcast-channel[Enable unstable \`BroadcastChannel\` API]' \ +'--unstable-cron[Enable unstable Deno.cron API]' \ +'--unstable-ffi[Enable unstable FFI APIs]' \ +'--unstable-fs[Enable unstable file system APIs]' \ +'--unstable-http[Enable unstable HTTP APIs]' \ +'--unstable-kv[Enable unstable Key-Value store APIs]' \ +'--unstable-net[Enable unstable net APIs]' \ +'--unstable-process[Enable unstable process APIs]' \ +'--unstable-temporal[Enable unstable Temporal API]' \ +'--unstable-unsafe-proto[Enable unsafe __proto__ support. This is a security risk.]' \ +'--unstable-webgpu[Enable unstable \`WebGPU\` APIs]' \ +'--unstable-worker-options[Enable unstable Web Worker APIs]' \ +'--no-remote[Do not resolve remote modules]' \ +'--no-npm[Do not resolve npm modules]' \ +'(-c --config)--no-config[Disable automatic loading of the configuration file]' \ +'(--lock)--no-lock[Disable auto discovery of the lock file]' \ +'(-R --allow-read -W --allow-write -N --allow-net -E --allow-env --allow-run -S --allow-sys --allow-ffi -I --allow-import)-A[Allow all permissions]' \ +'(-R --allow-read -W --allow-write -N --allow-net -E --allow-env --allow-run -S --allow-sys --allow-ffi -I --allow-import)--allow-all[Allow all permissions]' \ +'--allow-hrtime[REMOVED in Deno 2.0]' \ +'--deny-hrtime[REMOVED in Deno 2.0]' \ +'--no-prompt[Always throw if required permission wasn'\''t passed]' \ +'--cached-only[Require that remote dependencies are already cached]' \ +'--enable-testing-features-do-not-use[INTERNAL\: Enable internal features used during integration testing]' \ +'--parallel[Run multiple server workers in parallel. Parallelism defaults to the number of available CPUs or the value of the DENO_JOBS environment variable]' \ +'--no-clear-screen[Do not clear terminal screen when under watch mode]' \ +'--no-code-cache[Disable V8 code cache feature]' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +'*::script_arg -- Script arg:_files' \ +&& ret=0 +;; +(add) +_arguments "${_arguments_options[@]}" : \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'*--allow-scripts=[Allow running npm lifecycle scripts for the given packages Note\: Scripts will only be executed when using a node_modules directory (\`--node-modules-dir\`)]' \ +'--unstable[Enable all unstable features and APIs. Instead of using this flag, consider enabling individual unstable features To view the list of individual unstable feature flags, run this command again with --help=unstable]' \ +'--unstable-bare-node-builtins[Enable unstable bare node builtins feature]' \ +'--unstable-detect-cjs[Reads the package.json type field in a project to treat .js files as .cjs]' \ +'--unstable-byonm[]' \ +'--unstable-sloppy-imports[Enable unstable resolving of specifiers by extension probing, .js to .ts, and directory probing]' \ +'--unstable-broadcast-channel[Enable unstable \`BroadcastChannel\` API]' \ +'--unstable-cron[Enable unstable Deno.cron API]' \ +'--unstable-ffi[Enable unstable FFI APIs]' \ +'--unstable-fs[Enable unstable file system APIs]' \ +'--unstable-http[Enable unstable HTTP APIs]' \ +'--unstable-kv[Enable unstable Key-Value store APIs]' \ +'--unstable-net[Enable unstable net APIs]' \ +'--unstable-process[Enable unstable process APIs]' \ +'--unstable-temporal[Enable unstable Temporal API]' \ +'--unstable-unsafe-proto[Enable unsafe __proto__ support. This is a security risk.]' \ +'--unstable-webgpu[Enable unstable \`WebGPU\` APIs]' \ +'--unstable-worker-options[Enable unstable Web Worker APIs]' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +'-D[Add as a dev dependency]' \ +'--dev[Add as a dev dependency]' \ +'*::packages -- List of packages to add:' \ +&& ret=0 +;; +(remove) +_arguments "${_arguments_options[@]}" : \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'--unstable[Enable all unstable features and APIs. Instead of using this flag, consider enabling individual unstable features To view the list of individual unstable feature flags, run this command again with --help=unstable]' \ +'--unstable-bare-node-builtins[Enable unstable bare node builtins feature]' \ +'--unstable-detect-cjs[Reads the package.json type field in a project to treat .js files as .cjs]' \ +'--unstable-byonm[]' \ +'--unstable-sloppy-imports[Enable unstable resolving of specifiers by extension probing, .js to .ts, and directory probing]' \ +'--unstable-broadcast-channel[Enable unstable \`BroadcastChannel\` API]' \ +'--unstable-cron[Enable unstable Deno.cron API]' \ +'--unstable-ffi[Enable unstable FFI APIs]' \ +'--unstable-fs[Enable unstable file system APIs]' \ +'--unstable-http[Enable unstable HTTP APIs]' \ +'--unstable-kv[Enable unstable Key-Value store APIs]' \ +'--unstable-net[Enable unstable net APIs]' \ +'--unstable-process[Enable unstable process APIs]' \ +'--unstable-temporal[Enable unstable Temporal API]' \ +'--unstable-unsafe-proto[Enable unsafe __proto__ support. This is a security risk.]' \ +'--unstable-webgpu[Enable unstable \`WebGPU\` APIs]' \ +'--unstable-worker-options[Enable unstable Web Worker APIs]' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +'*::packages -- List of packages to remove:' \ +&& ret=0 +;; +(bench) +_arguments "${_arguments_options[@]}" : \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'--no-check=[Skip type-checking. If the value of "remote" is supplied, diagnostic errors from remote modules will be ignored]' \ +'--import-map=[Load import map file from local file or remote URL Docs\: https\://docs.deno.com/runtime/manual/basics/import_maps]:FILE:_files' \ +'--node-modules-dir=[Sets the node modules management mode for npm packages]' \ +'--vendor=[Toggles local vendor folder usage for remote modules and a node_modules folder for npm packages]' \ +'-c+[Configure different aspects of deno including TypeScript, linting, and code formatting Typically the configuration file will be called \`deno.json\` or \`deno.jsonc\` and automatically detected; in that case this flag is not necessary. Docs\: https\://docs.deno.com/go/config]:FILE:_files' \ +'--config=[Configure different aspects of deno including TypeScript, linting, and code formatting Typically the configuration file will be called \`deno.json\` or \`deno.jsonc\` and automatically detected; in that case this flag is not necessary. Docs\: https\://docs.deno.com/go/config]:FILE:_files' \ +'*-r+[Reload source code cache (recompile TypeScript) no value Reload everything jsr\:@std/http/file-server,jsr\:@std/assert/assert-equals Reloads specific modules npm\: Reload all npm modules npm\:chalk Reload specific npm module]' \ +'*--reload=[Reload source code cache (recompile TypeScript) no value Reload everything jsr\:@std/http/file-server,jsr\:@std/assert/assert-equals Reloads specific modules npm\: Reload all npm modules npm\:chalk Reload specific npm module]' \ +'--lock=[Check the specified lock file. (If value is not provided, defaults to "./deno.lock")]' \ +'--cert=[Load certificate authority from PEM encoded file]:FILE:_files' \ +'--unsafely-ignore-certificate-errors=[DANGER\: Disables verification of TLS certificates]' \ +'*-R+[Allow file system read access. Optionally specify allowed paths]' \ +'*--allow-read=[Allow file system read access. Optionally specify allowed paths]' \ +'*--deny-read=[Deny file system read access. Optionally specify denied paths]' \ +'*-W+[Allow file system write access. Optionally specify allowed paths]' \ +'*--allow-write=[Allow file system write access. Optionally specify allowed paths]' \ +'*--deny-write=[Deny file system write access. Optionally specify denied paths]' \ +'-N+[Allow network access. Optionally specify allowed IP addresses and host names, with ports as necessary]' \ +'--allow-net=[Allow network access. Optionally specify allowed IP addresses and host names, with ports as necessary]' \ +'--deny-net=[Deny network access. Optionally specify denied IP addresses and host names, with ports as necessary]' \ +'-E+[Allow access to system environment information. Optionally specify accessible environment variables]' \ +'--allow-env=[Allow access to system environment information. Optionally specify accessible environment variables]' \ +'--deny-env=[Deny access to system environment information. Optionally specify accessible environment variables]' \ +'-S+[Allow access to OS information. Optionally allow specific APIs by function name]' \ +'--allow-sys=[Allow access to OS information. Optionally allow specific APIs by function name]' \ +'--deny-sys=[Deny access to OS information. Optionally deny specific APIs by function name]' \ +'--allow-run=[Allow running subprocesses. Optionally specify allowed runnable program names]' \ +'--deny-run=[Deny running subprocesses. Optionally specify denied runnable program names]' \ +'*--allow-ffi=[(Unstable) Allow loading dynamic libraries. Optionally specify allowed directories or files]' \ +'*--deny-ffi=[(Unstable) Deny loading dynamic libraries. Optionally specify denied directories or files]' \ +'-I+[Allow importing from remote hosts. Optionally specify allowed IP addresses and host names, with ports as necessary. Default value\: deno.land\:443,jsr.io\:443,esm.sh\:443,cdn.jsdelivr.net\:443,raw.githubusercontent.com\:443,user.githubusercontent.com\:443]' \ +'--allow-import=[Allow importing from remote hosts. Optionally specify allowed IP addresses and host names, with ports as necessary. Default value\: deno.land\:443,jsr.io\:443,esm.sh\:443,cdn.jsdelivr.net\:443,raw.githubusercontent.com\:443,user.githubusercontent.com\:443]' \ +'*--allow-scripts=[Allow running npm lifecycle scripts for the given packages Note\: Scripts will only be executed when using a node_modules directory (\`--node-modules-dir\`)]' \ +'--frozen=[Error out if lockfile is out of date]' \ +'--location=[Value of globalThis.location used by some web APIs]:HREF:_urls' \ +'--v8-flags=[To see a list of all available flags use --v8-flags=--help Flags can also be set via the DENO_V8_FLAGS environment variable. Any flags set with this flag are appended after the DENO_V8_FLAGS environment variable]' \ +'--seed=[Set the random number generator seed]:NUMBER: ' \ +'--strace-ops=[Trace low-level op calls]' \ +'(--no-check)--check=[Set type-checking behavior. This subcommand type-checks local modules by default, so adding --check is redundant If the value of "all" is supplied, remote modules will be included. Alternatively, the '\''deno check'\'' subcommand can be used]' \ +'*--ignore=[Ignore files]: : ' \ +'--filter=[Run benchmarks with this string or regexp pattern in the bench name]: : ' \ +'*--watch-exclude=[Exclude provided files/patterns from watch mode]' \ +'--env-file=[Load environment variables from local file Only the first environment variable with a given key is used. Existing process environment variables are not overwritten.]' \ +'--ext=[Set content type of the supplied file]: :(ts tsx js jsx)' \ +'--unstable[Enable all unstable features and APIs. Instead of using this flag, consider enabling individual unstable features To view the list of individual unstable feature flags, run this command again with --help=unstable]' \ +'--unstable-bare-node-builtins[Enable unstable bare node builtins feature]' \ +'--unstable-detect-cjs[Reads the package.json type field in a project to treat .js files as .cjs]' \ +'--unstable-byonm[]' \ +'--unstable-sloppy-imports[Enable unstable resolving of specifiers by extension probing, .js to .ts, and directory probing]' \ +'--unstable-broadcast-channel[Enable unstable \`BroadcastChannel\` API]' \ +'--unstable-cron[Enable unstable Deno.cron API]' \ +'--unstable-ffi[Enable unstable FFI APIs]' \ +'--unstable-fs[Enable unstable file system APIs]' \ +'--unstable-http[Enable unstable HTTP APIs]' \ +'--unstable-kv[Enable unstable Key-Value store APIs]' \ +'--unstable-net[Enable unstable net APIs]' \ +'--unstable-process[Enable unstable process APIs]' \ +'--unstable-temporal[Enable unstable Temporal API]' \ +'--unstable-unsafe-proto[Enable unsafe __proto__ support. This is a security risk.]' \ +'--unstable-webgpu[Enable unstable \`WebGPU\` APIs]' \ +'--unstable-worker-options[Enable unstable Web Worker APIs]' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +'--no-remote[Do not resolve remote modules]' \ +'--no-npm[Do not resolve npm modules]' \ +'(-c --config)--no-config[Disable automatic loading of the configuration file]' \ +'(--lock)--no-lock[Disable auto discovery of the lock file]' \ +'(-R --allow-read -W --allow-write -N --allow-net -E --allow-env --allow-run -S --allow-sys --allow-ffi -I --allow-import)-A[Allow all permissions]' \ +'(-R --allow-read -W --allow-write -N --allow-net -E --allow-env --allow-run -S --allow-sys --allow-ffi -I --allow-import)--allow-all[Allow all permissions]' \ +'--allow-hrtime[REMOVED in Deno 2.0]' \ +'--deny-hrtime[REMOVED in Deno 2.0]' \ +'--no-prompt[Always throw if required permission wasn'\''t passed]' \ +'--cached-only[Require that remote dependencies are already cached]' \ +'--enable-testing-features-do-not-use[INTERNAL\: Enable internal features used during integration testing]' \ +'--json[UNSTABLE\: Output benchmark result in JSON format]' \ +'--no-run[Cache bench modules, but don'\''t run benchmarks]' \ +'--watch[Watch for file changes and restart process automatically. Only local files from entry point module graph are watched.]' \ +'--no-clear-screen[Do not clear terminal screen when under watch mode]' \ +'*::files -- List of file names to run:' \ +&& ret=0 +;; +(bundle) +_arguments "${_arguments_options[@]}" : \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'--unstable[Enable all unstable features and APIs. Instead of using this flag, consider enabling individual unstable features To view the list of individual unstable feature flags, run this command again with --help=unstable]' \ +'--unstable-bare-node-builtins[Enable unstable bare node builtins feature]' \ +'--unstable-detect-cjs[Reads the package.json type field in a project to treat .js files as .cjs]' \ +'--unstable-byonm[]' \ +'--unstable-sloppy-imports[Enable unstable resolving of specifiers by extension probing, .js to .ts, and directory probing]' \ +'--unstable-broadcast-channel[Enable unstable \`BroadcastChannel\` API]' \ +'--unstable-cron[Enable unstable Deno.cron API]' \ +'--unstable-ffi[Enable unstable FFI APIs]' \ +'--unstable-fs[Enable unstable file system APIs]' \ +'--unstable-http[Enable unstable HTTP APIs]' \ +'--unstable-kv[Enable unstable Key-Value store APIs]' \ +'--unstable-net[Enable unstable net APIs]' \ +'--unstable-process[Enable unstable process APIs]' \ +'--unstable-temporal[Enable unstable Temporal API]' \ +'--unstable-unsafe-proto[Enable unsafe __proto__ support. This is a security risk.]' \ +'--unstable-webgpu[Enable unstable \`WebGPU\` APIs]' \ +'--unstable-worker-options[Enable unstable Web Worker APIs]' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +&& ret=0 +;; +(cache) +_arguments "${_arguments_options[@]}" : \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'--no-check=[Skip type-checking. If the value of "remote" is supplied, diagnostic errors from remote modules will be ignored]' \ +'--import-map=[Load import map file from local file or remote URL Docs\: https\://docs.deno.com/runtime/manual/basics/import_maps]:FILE:_files' \ +'--node-modules-dir=[Sets the node modules management mode for npm packages]' \ +'--vendor=[Toggles local vendor folder usage for remote modules and a node_modules folder for npm packages]' \ +'-c+[Configure different aspects of deno including TypeScript, linting, and code formatting Typically the configuration file will be called \`deno.json\` or \`deno.jsonc\` and automatically detected; in that case this flag is not necessary. Docs\: https\://docs.deno.com/go/config]:FILE:_files' \ +'--config=[Configure different aspects of deno including TypeScript, linting, and code formatting Typically the configuration file will be called \`deno.json\` or \`deno.jsonc\` and automatically detected; in that case this flag is not necessary. Docs\: https\://docs.deno.com/go/config]:FILE:_files' \ +'*-r+[Reload source code cache (recompile TypeScript) no value Reload everything jsr\:@std/http/file-server,jsr\:@std/assert/assert-equals Reloads specific modules npm\: Reload all npm modules npm\:chalk Reload specific npm module]' \ +'*--reload=[Reload source code cache (recompile TypeScript) no value Reload everything jsr\:@std/http/file-server,jsr\:@std/assert/assert-equals Reloads specific modules npm\: Reload all npm modules npm\:chalk Reload specific npm module]' \ +'--lock=[Check the specified lock file. (If value is not provided, defaults to "./deno.lock")]' \ +'--cert=[Load certificate authority from PEM encoded file]:FILE:_files' \ +'--unsafely-ignore-certificate-errors=[DANGER\: Disables verification of TLS certificates]' \ +'(--no-check)--check=[Enable type-checking. This subcommand does not type-check by default If the value of "all" is supplied, remote modules will be included. Alternatively, the '\''deno check'\'' subcommand can be used]' \ +'--frozen=[Error out if lockfile is out of date]' \ +'*--allow-scripts=[Allow running npm lifecycle scripts for the given packages Note\: Scripts will only be executed when using a node_modules directory (\`--node-modules-dir\`)]' \ +'-I+[Allow importing from remote hosts. Optionally specify allowed IP addresses and host names, with ports as necessary. Default value\: deno.land\:443,jsr.io\:443,esm.sh\:443,cdn.jsdelivr.net\:443,raw.githubusercontent.com\:443,user.githubusercontent.com\:443]' \ +'--allow-import=[Allow importing from remote hosts. Optionally specify allowed IP addresses and host names, with ports as necessary. Default value\: deno.land\:443,jsr.io\:443,esm.sh\:443,cdn.jsdelivr.net\:443,raw.githubusercontent.com\:443,user.githubusercontent.com\:443]' \ +'--unstable[Enable all unstable features and APIs. Instead of using this flag, consider enabling individual unstable features To view the list of individual unstable feature flags, run this command again with --help=unstable]' \ +'--unstable-bare-node-builtins[Enable unstable bare node builtins feature]' \ +'--unstable-detect-cjs[Reads the package.json type field in a project to treat .js files as .cjs]' \ +'--unstable-byonm[]' \ +'--unstable-sloppy-imports[Enable unstable resolving of specifiers by extension probing, .js to .ts, and directory probing]' \ +'--unstable-broadcast-channel[Enable unstable \`BroadcastChannel\` API]' \ +'--unstable-cron[Enable unstable Deno.cron API]' \ +'--unstable-ffi[Enable unstable FFI APIs]' \ +'--unstable-fs[Enable unstable file system APIs]' \ +'--unstable-http[Enable unstable HTTP APIs]' \ +'--unstable-kv[Enable unstable Key-Value store APIs]' \ +'--unstable-net[Enable unstable net APIs]' \ +'--unstable-process[Enable unstable process APIs]' \ +'--unstable-temporal[Enable unstable Temporal API]' \ +'--unstable-unsafe-proto[Enable unsafe __proto__ support. This is a security risk.]' \ +'--unstable-webgpu[Enable unstable \`WebGPU\` APIs]' \ +'--unstable-worker-options[Enable unstable Web Worker APIs]' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +'--no-remote[Do not resolve remote modules]' \ +'--no-npm[Do not resolve npm modules]' \ +'(-c --config)--no-config[Disable automatic loading of the configuration file]' \ +'(--lock)--no-lock[Disable auto discovery of the lock file]' \ +'*::file:_files' \ +&& ret=0 +;; +(check) +_arguments "${_arguments_options[@]}" : \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'--import-map=[Load import map file from local file or remote URL Docs\: https\://docs.deno.com/runtime/manual/basics/import_maps]:FILE:_files' \ +'--node-modules-dir=[Sets the node modules management mode for npm packages]' \ +'--vendor=[Toggles local vendor folder usage for remote modules and a node_modules folder for npm packages]' \ +'-c+[Configure different aspects of deno including TypeScript, linting, and code formatting Typically the configuration file will be called \`deno.json\` or \`deno.jsonc\` and automatically detected; in that case this flag is not necessary. Docs\: https\://docs.deno.com/go/config]:FILE:_files' \ +'--config=[Configure different aspects of deno including TypeScript, linting, and code formatting Typically the configuration file will be called \`deno.json\` or \`deno.jsonc\` and automatically detected; in that case this flag is not necessary. Docs\: https\://docs.deno.com/go/config]:FILE:_files' \ +'*-r+[Reload source code cache (recompile TypeScript) no value Reload everything jsr\:@std/http/file-server,jsr\:@std/assert/assert-equals Reloads specific modules npm\: Reload all npm modules npm\:chalk Reload specific npm module]' \ +'*--reload=[Reload source code cache (recompile TypeScript) no value Reload everything jsr\:@std/http/file-server,jsr\:@std/assert/assert-equals Reloads specific modules npm\: Reload all npm modules npm\:chalk Reload specific npm module]' \ +'--lock=[Check the specified lock file. (If value is not provided, defaults to "./deno.lock")]' \ +'--cert=[Load certificate authority from PEM encoded file]:FILE:_files' \ +'--unsafely-ignore-certificate-errors=[DANGER\: Disables verification of TLS certificates]' \ +'--frozen=[Error out if lockfile is out of date]' \ +'-I+[Allow importing from remote hosts. Optionally specify allowed IP addresses and host names, with ports as necessary. Default value\: deno.land\:443,jsr.io\:443,esm.sh\:443,cdn.jsdelivr.net\:443,raw.githubusercontent.com\:443,user.githubusercontent.com\:443]' \ +'--allow-import=[Allow importing from remote hosts. Optionally specify allowed IP addresses and host names, with ports as necessary. Default value\: deno.land\:443,jsr.io\:443,esm.sh\:443,cdn.jsdelivr.net\:443,raw.githubusercontent.com\:443,user.githubusercontent.com\:443]' \ +'--unstable[Enable all unstable features and APIs. Instead of using this flag, consider enabling individual unstable features To view the list of individual unstable feature flags, run this command again with --help=unstable]' \ +'--unstable-bare-node-builtins[Enable unstable bare node builtins feature]' \ +'--unstable-detect-cjs[Reads the package.json type field in a project to treat .js files as .cjs]' \ +'--unstable-byonm[]' \ +'--unstable-sloppy-imports[Enable unstable resolving of specifiers by extension probing, .js to .ts, and directory probing]' \ +'--unstable-broadcast-channel[Enable unstable \`BroadcastChannel\` API]' \ +'--unstable-cron[Enable unstable Deno.cron API]' \ +'--unstable-ffi[Enable unstable FFI APIs]' \ +'--unstable-fs[Enable unstable file system APIs]' \ +'--unstable-http[Enable unstable HTTP APIs]' \ +'--unstable-kv[Enable unstable Key-Value store APIs]' \ +'--unstable-net[Enable unstable net APIs]' \ +'--unstable-process[Enable unstable process APIs]' \ +'--unstable-temporal[Enable unstable Temporal API]' \ +'--unstable-unsafe-proto[Enable unsafe __proto__ support. This is a security risk.]' \ +'--unstable-webgpu[Enable unstable \`WebGPU\` APIs]' \ +'--unstable-worker-options[Enable unstable Web Worker APIs]' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +'--no-remote[Do not resolve remote modules]' \ +'--no-npm[Do not resolve npm modules]' \ +'(-c --config)--no-config[Disable automatic loading of the configuration file]' \ +'(--lock)--no-lock[Disable auto discovery of the lock file]' \ +'(--no-remote)--all[Type-check all code, including remote modules and npm packages]' \ +'(--no-remote)--remote[Type-check all modules, including remote ones]' \ +'--doc[Type-check code blocks in JSDoc as well as actual code]' \ +'(--doc)--doc-only[Type-check code blocks in JSDoc and Markdown only]' \ +'*::file:_files' \ +&& ret=0 +;; +(clean) +_arguments "${_arguments_options[@]}" : \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'--unstable[Enable all unstable features and APIs. Instead of using this flag, consider enabling individual unstable features To view the list of individual unstable feature flags, run this command again with --help=unstable]' \ +'--unstable-bare-node-builtins[Enable unstable bare node builtins feature]' \ +'--unstable-detect-cjs[Reads the package.json type field in a project to treat .js files as .cjs]' \ +'--unstable-byonm[]' \ +'--unstable-sloppy-imports[Enable unstable resolving of specifiers by extension probing, .js to .ts, and directory probing]' \ +'--unstable-broadcast-channel[Enable unstable \`BroadcastChannel\` API]' \ +'--unstable-cron[Enable unstable Deno.cron API]' \ +'--unstable-ffi[Enable unstable FFI APIs]' \ +'--unstable-fs[Enable unstable file system APIs]' \ +'--unstable-http[Enable unstable HTTP APIs]' \ +'--unstable-kv[Enable unstable Key-Value store APIs]' \ +'--unstable-net[Enable unstable net APIs]' \ +'--unstable-process[Enable unstable process APIs]' \ +'--unstable-temporal[Enable unstable Temporal API]' \ +'--unstable-unsafe-proto[Enable unsafe __proto__ support. This is a security risk.]' \ +'--unstable-webgpu[Enable unstable \`WebGPU\` APIs]' \ +'--unstable-worker-options[Enable unstable Web Worker APIs]' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +&& ret=0 +;; +(compile) +_arguments "${_arguments_options[@]}" : \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'--no-check=[Skip type-checking. If the value of "remote" is supplied, diagnostic errors from remote modules will be ignored]' \ +'--import-map=[Load import map file from local file or remote URL Docs\: https\://docs.deno.com/runtime/manual/basics/import_maps]:FILE:_files' \ +'--node-modules-dir=[Sets the node modules management mode for npm packages]' \ +'--vendor=[Toggles local vendor folder usage for remote modules and a node_modules folder for npm packages]' \ +'-c+[Configure different aspects of deno including TypeScript, linting, and code formatting Typically the configuration file will be called \`deno.json\` or \`deno.jsonc\` and automatically detected; in that case this flag is not necessary. Docs\: https\://docs.deno.com/go/config]:FILE:_files' \ +'--config=[Configure different aspects of deno including TypeScript, linting, and code formatting Typically the configuration file will be called \`deno.json\` or \`deno.jsonc\` and automatically detected; in that case this flag is not necessary. Docs\: https\://docs.deno.com/go/config]:FILE:_files' \ +'*-r+[Reload source code cache (recompile TypeScript) no value Reload everything jsr\:@std/http/file-server,jsr\:@std/assert/assert-equals Reloads specific modules npm\: Reload all npm modules npm\:chalk Reload specific npm module]' \ +'*--reload=[Reload source code cache (recompile TypeScript) no value Reload everything jsr\:@std/http/file-server,jsr\:@std/assert/assert-equals Reloads specific modules npm\: Reload all npm modules npm\:chalk Reload specific npm module]' \ +'--lock=[Check the specified lock file. (If value is not provided, defaults to "./deno.lock")]' \ +'--cert=[Load certificate authority from PEM encoded file]:FILE:_files' \ +'--unsafely-ignore-certificate-errors=[DANGER\: Disables verification of TLS certificates]' \ +'*-R+[Allow file system read access. Optionally specify allowed paths]' \ +'*--allow-read=[Allow file system read access. Optionally specify allowed paths]' \ +'*--deny-read=[Deny file system read access. Optionally specify denied paths]' \ +'*-W+[Allow file system write access. Optionally specify allowed paths]' \ +'*--allow-write=[Allow file system write access. Optionally specify allowed paths]' \ +'*--deny-write=[Deny file system write access. Optionally specify denied paths]' \ +'-N+[Allow network access. Optionally specify allowed IP addresses and host names, with ports as necessary]' \ +'--allow-net=[Allow network access. Optionally specify allowed IP addresses and host names, with ports as necessary]' \ +'--deny-net=[Deny network access. Optionally specify denied IP addresses and host names, with ports as necessary]' \ +'-E+[Allow access to system environment information. Optionally specify accessible environment variables]' \ +'--allow-env=[Allow access to system environment information. Optionally specify accessible environment variables]' \ +'--deny-env=[Deny access to system environment information. Optionally specify accessible environment variables]' \ +'-S+[Allow access to OS information. Optionally allow specific APIs by function name]' \ +'--allow-sys=[Allow access to OS information. Optionally allow specific APIs by function name]' \ +'--deny-sys=[Deny access to OS information. Optionally deny specific APIs by function name]' \ +'--allow-run=[Allow running subprocesses. Optionally specify allowed runnable program names]' \ +'--deny-run=[Deny running subprocesses. Optionally specify denied runnable program names]' \ +'*--allow-ffi=[(Unstable) Allow loading dynamic libraries. Optionally specify allowed directories or files]' \ +'*--deny-ffi=[(Unstable) Deny loading dynamic libraries. Optionally specify denied directories or files]' \ +'-I+[Allow importing from remote hosts. Optionally specify allowed IP addresses and host names, with ports as necessary. Default value\: deno.land\:443,jsr.io\:443,esm.sh\:443,cdn.jsdelivr.net\:443,raw.githubusercontent.com\:443,user.githubusercontent.com\:443]' \ +'--allow-import=[Allow importing from remote hosts. Optionally specify allowed IP addresses and host names, with ports as necessary. Default value\: deno.land\:443,jsr.io\:443,esm.sh\:443,cdn.jsdelivr.net\:443,raw.githubusercontent.com\:443,user.githubusercontent.com\:443]' \ +'*--allow-scripts=[Allow running npm lifecycle scripts for the given packages Note\: Scripts will only be executed when using a node_modules directory (\`--node-modules-dir\`)]' \ +'--frozen=[Error out if lockfile is out of date]' \ +'--location=[Value of globalThis.location used by some web APIs]:HREF:_urls' \ +'--v8-flags=[To see a list of all available flags use --v8-flags=--help Flags can also be set via the DENO_V8_FLAGS environment variable. Any flags set with this flag are appended after the DENO_V8_FLAGS environment variable]' \ +'--seed=[Set the random number generator seed]:NUMBER: ' \ +'--strace-ops=[Trace low-level op calls]' \ +'(--no-check)--check=[Set type-checking behavior. This subcommand type-checks local modules by default, so adding --check is redundant If the value of "all" is supplied, remote modules will be included. Alternatively, the '\''deno check'\'' subcommand can be used]' \ +'*--include=[Includes an additional module in the compiled executable'\''s module graph. Use this flag if a dynamically imported module or a web worker main module fails to load in the executable. This flag can be passed multiple times, to include multiple additional modules.]: :_files' \ +'-o+[Output file (defaults to \$PWD/)]: :_files' \ +'--output=[Output file (defaults to \$PWD/)]: :_files' \ +'--target=[Target OS architecture]: :(x86_64-unknown-linux-gnu aarch64-unknown-linux-gnu x86_64-pc-windows-msvc x86_64-apple-darwin aarch64-apple-darwin)' \ +'--icon=[Set the icon of the executable on Windows (.ico)]: : ' \ +'--ext=[Set content type of the supplied file]: :(ts tsx js jsx)' \ +'--env-file=[Load environment variables from local file Only the first environment variable with a given key is used. Existing process environment variables are not overwritten.]' \ +'--unstable[Enable all unstable features and APIs. Instead of using this flag, consider enabling individual unstable features To view the list of individual unstable feature flags, run this command again with --help=unstable]' \ +'--unstable-bare-node-builtins[Enable unstable bare node builtins feature]' \ +'--unstable-detect-cjs[Reads the package.json type field in a project to treat .js files as .cjs]' \ +'--unstable-byonm[]' \ +'--unstable-sloppy-imports[Enable unstable resolving of specifiers by extension probing, .js to .ts, and directory probing]' \ +'--unstable-broadcast-channel[Enable unstable \`BroadcastChannel\` API]' \ +'--unstable-cron[Enable unstable Deno.cron API]' \ +'--unstable-ffi[Enable unstable FFI APIs]' \ +'--unstable-fs[Enable unstable file system APIs]' \ +'--unstable-http[Enable unstable HTTP APIs]' \ +'--unstable-kv[Enable unstable Key-Value store APIs]' \ +'--unstable-net[Enable unstable net APIs]' \ +'--unstable-process[Enable unstable process APIs]' \ +'--unstable-temporal[Enable unstable Temporal API]' \ +'--unstable-unsafe-proto[Enable unsafe __proto__ support. This is a security risk.]' \ +'--unstable-webgpu[Enable unstable \`WebGPU\` APIs]' \ +'--unstable-worker-options[Enable unstable Web Worker APIs]' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +'--no-remote[Do not resolve remote modules]' \ +'--no-npm[Do not resolve npm modules]' \ +'(-c --config)--no-config[Disable automatic loading of the configuration file]' \ +'(--lock)--no-lock[Disable auto discovery of the lock file]' \ +'(-R --allow-read -W --allow-write -N --allow-net -E --allow-env --allow-run -S --allow-sys --allow-ffi -I --allow-import)-A[Allow all permissions]' \ +'(-R --allow-read -W --allow-write -N --allow-net -E --allow-env --allow-run -S --allow-sys --allow-ffi -I --allow-import)--allow-all[Allow all permissions]' \ +'--allow-hrtime[REMOVED in Deno 2.0]' \ +'--deny-hrtime[REMOVED in Deno 2.0]' \ +'--no-prompt[Always throw if required permission wasn'\''t passed]' \ +'--cached-only[Require that remote dependencies are already cached]' \ +'--enable-testing-features-do-not-use[INTERNAL\: Enable internal features used during integration testing]' \ +'--no-terminal[Hide terminal on Windows]' \ +'*::script_arg -- Script arg:_files' \ +&& ret=0 +;; +(completions) +_arguments "${_arguments_options[@]}" : \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'--unstable[Enable all unstable features and APIs. Instead of using this flag, consider enabling individual unstable features To view the list of individual unstable feature flags, run this command again with --help=unstable]' \ +'--unstable-bare-node-builtins[Enable unstable bare node builtins feature]' \ +'--unstable-detect-cjs[Reads the package.json type field in a project to treat .js files as .cjs]' \ +'--unstable-byonm[]' \ +'--unstable-sloppy-imports[Enable unstable resolving of specifiers by extension probing, .js to .ts, and directory probing]' \ +'--unstable-broadcast-channel[Enable unstable \`BroadcastChannel\` API]' \ +'--unstable-cron[Enable unstable Deno.cron API]' \ +'--unstable-ffi[Enable unstable FFI APIs]' \ +'--unstable-fs[Enable unstable file system APIs]' \ +'--unstable-http[Enable unstable HTTP APIs]' \ +'--unstable-kv[Enable unstable Key-Value store APIs]' \ +'--unstable-net[Enable unstable net APIs]' \ +'--unstable-process[Enable unstable process APIs]' \ +'--unstable-temporal[Enable unstable Temporal API]' \ +'--unstable-unsafe-proto[Enable unsafe __proto__ support. This is a security risk.]' \ +'--unstable-webgpu[Enable unstable \`WebGPU\` APIs]' \ +'--unstable-worker-options[Enable unstable Web Worker APIs]' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +'::shell:(bash fish powershell zsh fig)' \ +&& ret=0 +;; +(coverage) +_arguments "${_arguments_options[@]}" : \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'*--ignore=[Ignore coverage files]: :_files' \ +'*--include=[Include source files in the report]:regex: ' \ +'*--exclude=[Exclude source files from the report]:regex: ' \ +'--output=[Exports the coverage report in lcov format to the given file. If no --output arg is specified then the report is written to stdout.]: :_files' \ +'--unstable[Enable all unstable features and APIs. Instead of using this flag, consider enabling individual unstable features To view the list of individual unstable feature flags, run this command again with --help=unstable]' \ +'--unstable-bare-node-builtins[Enable unstable bare node builtins feature]' \ +'--unstable-detect-cjs[Reads the package.json type field in a project to treat .js files as .cjs]' \ +'--unstable-byonm[]' \ +'--unstable-sloppy-imports[Enable unstable resolving of specifiers by extension probing, .js to .ts, and directory probing]' \ +'--unstable-broadcast-channel[Enable unstable \`BroadcastChannel\` API]' \ +'--unstable-cron[Enable unstable Deno.cron API]' \ +'--unstable-ffi[Enable unstable FFI APIs]' \ +'--unstable-fs[Enable unstable file system APIs]' \ +'--unstable-http[Enable unstable HTTP APIs]' \ +'--unstable-kv[Enable unstable Key-Value store APIs]' \ +'--unstable-net[Enable unstable net APIs]' \ +'--unstable-process[Enable unstable process APIs]' \ +'--unstable-temporal[Enable unstable Temporal API]' \ +'--unstable-unsafe-proto[Enable unsafe __proto__ support. This is a security risk.]' \ +'--unstable-webgpu[Enable unstable \`WebGPU\` APIs]' \ +'--unstable-worker-options[Enable unstable Web Worker APIs]' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +'--lcov[Output coverage report in lcov format]' \ +'--html[Output coverage report in HTML format in the given directory]' \ +'--detailed[Output coverage report in detailed format in the terminal]' \ +'*::files:_files' \ +&& ret=0 +;; +(doc) +_arguments "${_arguments_options[@]}" : \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'--import-map=[Load import map file from local file or remote URL Docs\: https\://docs.deno.com/runtime/manual/basics/import_maps]:FILE:_files' \ +'*-r+[Reload source code cache (recompile TypeScript) no value Reload everything jsr\:@std/http/file-server,jsr\:@std/assert/assert-equals Reloads specific modules npm\: Reload all npm modules npm\:chalk Reload specific npm module]' \ +'*--reload=[Reload source code cache (recompile TypeScript) no value Reload everything jsr\:@std/http/file-server,jsr\:@std/assert/assert-equals Reloads specific modules npm\: Reload all npm modules npm\:chalk Reload specific npm module]' \ +'--lock=[Check the specified lock file. (If value is not provided, defaults to "./deno.lock")]' \ +'-I+[Allow importing from remote hosts. Optionally specify allowed IP addresses and host names, with ports as necessary. Default value\: deno.land\:443,jsr.io\:443,esm.sh\:443,cdn.jsdelivr.net\:443,raw.githubusercontent.com\:443,user.githubusercontent.com\:443]' \ +'--allow-import=[Allow importing from remote hosts. Optionally specify allowed IP addresses and host names, with ports as necessary. Default value\: deno.land\:443,jsr.io\:443,esm.sh\:443,cdn.jsdelivr.net\:443,raw.githubusercontent.com\:443,user.githubusercontent.com\:443]' \ +'--name=[The name that will be used in the docs (ie for breadcrumbs)]: : ' \ +'--category-docs=[Path to a JSON file keyed by category and an optional value of a markdown doc]: : ' \ +'--symbol-redirect-map=[Path to a JSON file keyed by file, with an inner map of symbol to an external link]: : ' \ +'--default-symbol-map=[Uses the provided mapping of default name to wanted name for usage blocks]: : ' \ +'--output=[Directory for HTML documentation output]: :_files -/' \ +'(--json --lint --html)--filter=[Dot separated path to symbol]: : ' \ +'--unstable[Enable all unstable features and APIs. Instead of using this flag, consider enabling individual unstable features To view the list of individual unstable feature flags, run this command again with --help=unstable]' \ +'--unstable-bare-node-builtins[Enable unstable bare node builtins feature]' \ +'--unstable-detect-cjs[Reads the package.json type field in a project to treat .js files as .cjs]' \ +'--unstable-byonm[]' \ +'--unstable-sloppy-imports[Enable unstable resolving of specifiers by extension probing, .js to .ts, and directory probing]' \ +'--unstable-broadcast-channel[Enable unstable \`BroadcastChannel\` API]' \ +'--unstable-cron[Enable unstable Deno.cron API]' \ +'--unstable-ffi[Enable unstable FFI APIs]' \ +'--unstable-fs[Enable unstable file system APIs]' \ +'--unstable-http[Enable unstable HTTP APIs]' \ +'--unstable-kv[Enable unstable Key-Value store APIs]' \ +'--unstable-net[Enable unstable net APIs]' \ +'--unstable-process[Enable unstable process APIs]' \ +'--unstable-temporal[Enable unstable Temporal API]' \ +'--unstable-unsafe-proto[Enable unsafe __proto__ support. This is a security risk.]' \ +'--unstable-webgpu[Enable unstable \`WebGPU\` APIs]' \ +'--unstable-worker-options[Enable unstable Web Worker APIs]' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +'(--lock)--no-lock[Disable auto discovery of the lock file]' \ +'--no-npm[Do not resolve npm modules]' \ +'--no-remote[Do not resolve remote modules]' \ +'--json[Output documentation in JSON format]' \ +'(--json)--html[Output documentation in HTML format]' \ +'--strip-trailing-html[Remove trailing .html from various links. Will still generate files with a .html extension]' \ +'--private[Output private documentation]' \ +'--lint[Output documentation diagnostics.]' \ +'*::source_file:_files' \ +&& ret=0 +;; +(eval) +_arguments "${_arguments_options[@]}" : \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'--no-check=[Skip type-checking. If the value of "remote" is supplied, diagnostic errors from remote modules will be ignored]' \ +'--import-map=[Load import map file from local file or remote URL Docs\: https\://docs.deno.com/runtime/manual/basics/import_maps]:FILE:_files' \ +'--node-modules-dir=[Sets the node modules management mode for npm packages]' \ +'--vendor=[Toggles local vendor folder usage for remote modules and a node_modules folder for npm packages]' \ +'-c+[Configure different aspects of deno including TypeScript, linting, and code formatting Typically the configuration file will be called \`deno.json\` or \`deno.jsonc\` and automatically detected; in that case this flag is not necessary. Docs\: https\://docs.deno.com/go/config]:FILE:_files' \ +'--config=[Configure different aspects of deno including TypeScript, linting, and code formatting Typically the configuration file will be called \`deno.json\` or \`deno.jsonc\` and automatically detected; in that case this flag is not necessary. Docs\: https\://docs.deno.com/go/config]:FILE:_files' \ +'*-r+[Reload source code cache (recompile TypeScript) no value Reload everything jsr\:@std/http/file-server,jsr\:@std/assert/assert-equals Reloads specific modules npm\: Reload all npm modules npm\:chalk Reload specific npm module]' \ +'*--reload=[Reload source code cache (recompile TypeScript) no value Reload everything jsr\:@std/http/file-server,jsr\:@std/assert/assert-equals Reloads specific modules npm\: Reload all npm modules npm\:chalk Reload specific npm module]' \ +'--lock=[Check the specified lock file. (If value is not provided, defaults to "./deno.lock")]' \ +'--cert=[Load certificate authority from PEM encoded file]:FILE:_files' \ +'--unsafely-ignore-certificate-errors=[DANGER\: Disables verification of TLS certificates]' \ +'--inspect=[Activate inspector on host\:port \[default\: 127.0.0.1\:9229\]]' \ +'--inspect-brk=[Activate inspector on host\:port, wait for debugger to connect and break at the start of user script]' \ +'--inspect-wait=[Activate inspector on host\:port and wait for debugger to connect before running user code]' \ +'*--allow-scripts=[Allow running npm lifecycle scripts for the given packages Note\: Scripts will only be executed when using a node_modules directory (\`--node-modules-dir\`)]' \ +'--frozen=[Error out if lockfile is out of date]' \ +'--location=[Value of globalThis.location used by some web APIs]:HREF:_urls' \ +'--v8-flags=[To see a list of all available flags use --v8-flags=--help Flags can also be set via the DENO_V8_FLAGS environment variable. Any flags set with this flag are appended after the DENO_V8_FLAGS environment variable]' \ +'--seed=[Set the random number generator seed]:NUMBER: ' \ +'--strace-ops=[Trace low-level op calls]' \ +'(--no-check)--check=[Enable type-checking. This subcommand does not type-check by default If the value of "all" is supplied, remote modules will be included. Alternatively, the '\''deno check'\'' subcommand can be used]' \ +'--ext=[Set content type of the supplied file]: :(ts tsx js jsx)' \ +'--env-file=[Load environment variables from local file Only the first environment variable with a given key is used. Existing process environment variables are not overwritten.]' \ +'--unstable[Enable all unstable features and APIs. Instead of using this flag, consider enabling individual unstable features To view the list of individual unstable feature flags, run this command again with --help=unstable]' \ +'--unstable-bare-node-builtins[Enable unstable bare node builtins feature]' \ +'--unstable-detect-cjs[Reads the package.json type field in a project to treat .js files as .cjs]' \ +'--unstable-byonm[]' \ +'--unstable-sloppy-imports[Enable unstable resolving of specifiers by extension probing, .js to .ts, and directory probing]' \ +'--unstable-broadcast-channel[Enable unstable \`BroadcastChannel\` API]' \ +'--unstable-cron[Enable unstable Deno.cron API]' \ +'--unstable-ffi[Enable unstable FFI APIs]' \ +'--unstable-fs[Enable unstable file system APIs]' \ +'--unstable-http[Enable unstable HTTP APIs]' \ +'--unstable-kv[Enable unstable Key-Value store APIs]' \ +'--unstable-net[Enable unstable net APIs]' \ +'--unstable-process[Enable unstable process APIs]' \ +'--unstable-temporal[Enable unstable Temporal API]' \ +'--unstable-unsafe-proto[Enable unsafe __proto__ support. This is a security risk.]' \ +'--unstable-webgpu[Enable unstable \`WebGPU\` APIs]' \ +'--unstable-worker-options[Enable unstable Web Worker APIs]' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +'--no-remote[Do not resolve remote modules]' \ +'--no-npm[Do not resolve npm modules]' \ +'(-c --config)--no-config[Disable automatic loading of the configuration file]' \ +'(--lock)--no-lock[Disable auto discovery of the lock file]' \ +'--cached-only[Require that remote dependencies are already cached]' \ +'--enable-testing-features-do-not-use[INTERNAL\: Enable internal features used during integration testing]' \ +'-p[print result to stdout]' \ +'--print[print result to stdout]' \ +'*::code_arg -- Code to evaluate:' \ +&& ret=0 +;; +(fmt) +_arguments "${_arguments_options[@]}" : \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'-c+[Configure different aspects of deno including TypeScript, linting, and code formatting Typically the configuration file will be called \`deno.json\` or \`deno.jsonc\` and automatically detected; in that case this flag is not necessary. Docs\: https\://docs.deno.com/go/config]:FILE:_files' \ +'--config=[Configure different aspects of deno including TypeScript, linting, and code formatting Typically the configuration file will be called \`deno.json\` or \`deno.jsonc\` and automatically detected; in that case this flag is not necessary. Docs\: https\://docs.deno.com/go/config]:FILE:_files' \ +'--ext=[Set content type of the supplied file]: :(ts tsx js jsx md json jsonc css scss sass less html svelte vue astro yml yaml ipynb)' \ +'*--ignore=[Ignore formatting particular source files]: :_files' \ +'*--watch-exclude=[Exclude provided files/patterns from watch mode]' \ +'--use-tabs=[Use tabs instead of spaces for indentation \[default\: false\]]' \ +'--line-width=[Define maximum line width \[default\: 80\]]: : ' \ +'--indent-width=[Define indentation width \[default\: 2\]]: : ' \ +'--single-quote=[Use single quotes \[default\: false\]]' \ +'--prose-wrap=[Define how prose should be wrapped \[default\: always\]]: :(always never preserve)' \ +'--no-semicolons=[Don'\''t use semicolons except where necessary \[default\: false\]]' \ +'--unstable[Enable all unstable features and APIs. Instead of using this flag, consider enabling individual unstable features To view the list of individual unstable feature flags, run this command again with --help=unstable]' \ +'--unstable-bare-node-builtins[Enable unstable bare node builtins feature]' \ +'--unstable-detect-cjs[Reads the package.json type field in a project to treat .js files as .cjs]' \ +'--unstable-byonm[]' \ +'--unstable-sloppy-imports[Enable unstable resolving of specifiers by extension probing, .js to .ts, and directory probing]' \ +'--unstable-broadcast-channel[Enable unstable \`BroadcastChannel\` API]' \ +'--unstable-cron[Enable unstable Deno.cron API]' \ +'--unstable-ffi[Enable unstable FFI APIs]' \ +'--unstable-fs[Enable unstable file system APIs]' \ +'--unstable-http[Enable unstable HTTP APIs]' \ +'--unstable-kv[Enable unstable Key-Value store APIs]' \ +'--unstable-net[Enable unstable net APIs]' \ +'--unstable-process[Enable unstable process APIs]' \ +'--unstable-temporal[Enable unstable Temporal API]' \ +'--unstable-unsafe-proto[Enable unsafe __proto__ support. This is a security risk.]' \ +'--unstable-webgpu[Enable unstable \`WebGPU\` APIs]' \ +'--unstable-worker-options[Enable unstable Web Worker APIs]' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +'(-c --config)--no-config[Disable automatic loading of the configuration file]' \ +'--check[Check if the source files are formatted]' \ +'--watch[Watch for file changes and restart process automatically. Only local files from entry point module graph are watched.]' \ +'--no-clear-screen[Do not clear terminal screen when under watch mode]' \ +'--unstable-css[Enable formatting CSS, SCSS, Sass and Less files]' \ +'--unstable-html[Enable formatting HTML files]' \ +'--unstable-component[Enable formatting Svelte, Vue, Astro and Angular files]' \ +'--unstable-yaml[Enable formatting YAML files]' \ +'*::files:_files' \ +&& ret=0 +;; +(init) +_arguments "${_arguments_options[@]}" : \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'--unstable[Enable all unstable features and APIs. Instead of using this flag, consider enabling individual unstable features To view the list of individual unstable feature flags, run this command again with --help=unstable]' \ +'--unstable-bare-node-builtins[Enable unstable bare node builtins feature]' \ +'--unstable-detect-cjs[Reads the package.json type field in a project to treat .js files as .cjs]' \ +'--unstable-byonm[]' \ +'--unstable-sloppy-imports[Enable unstable resolving of specifiers by extension probing, .js to .ts, and directory probing]' \ +'--unstable-broadcast-channel[Enable unstable \`BroadcastChannel\` API]' \ +'--unstable-cron[Enable unstable Deno.cron API]' \ +'--unstable-ffi[Enable unstable FFI APIs]' \ +'--unstable-fs[Enable unstable file system APIs]' \ +'--unstable-http[Enable unstable HTTP APIs]' \ +'--unstable-kv[Enable unstable Key-Value store APIs]' \ +'--unstable-net[Enable unstable net APIs]' \ +'--unstable-process[Enable unstable process APIs]' \ +'--unstable-temporal[Enable unstable Temporal API]' \ +'--unstable-unsafe-proto[Enable unsafe __proto__ support. This is a security risk.]' \ +'--unstable-webgpu[Enable unstable \`WebGPU\` APIs]' \ +'--unstable-worker-options[Enable unstable Web Worker APIs]' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +'--lib[Generate an example library project]' \ +'(--lib)--serve[Generate an example project for \`deno serve\`]' \ +'::dir:_files -/' \ +&& ret=0 +;; +(info) +_arguments "${_arguments_options[@]}" : \ +'-I+[Allow importing from remote hosts. Optionally specify allowed IP addresses and host names, with ports as necessary. Default value\: deno.land\:443,jsr.io\:443,esm.sh\:443,cdn.jsdelivr.net\:443,raw.githubusercontent.com\:443,user.githubusercontent.com\:443]' \ +'--allow-import=[Allow importing from remote hosts. Optionally specify allowed IP addresses and host names, with ports as necessary. Default value\: deno.land\:443,jsr.io\:443,esm.sh\:443,cdn.jsdelivr.net\:443,raw.githubusercontent.com\:443,user.githubusercontent.com\:443]' \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'*-r+[Reload source code cache (recompile TypeScript) no value Reload everything jsr\:@std/http/file-server,jsr\:@std/assert/assert-equals Reloads specific modules npm\: Reload all npm modules npm\:chalk Reload specific npm module]' \ +'*--reload=[Reload source code cache (recompile TypeScript) no value Reload everything jsr\:@std/http/file-server,jsr\:@std/assert/assert-equals Reloads specific modules npm\: Reload all npm modules npm\:chalk Reload specific npm module]' \ +'--cert=[Load certificate authority from PEM encoded file]:FILE:_files' \ +'--unsafely-ignore-certificate-errors=[DANGER\: Disables verification of TLS certificates]' \ +'()--location=[Show files used for origin bound APIs like the Web Storage API when running a script with --location=]:HREF:_urls' \ +'--no-check=[Skip type-checking. If the value of "remote" is supplied, diagnostic errors from remote modules will be ignored]' \ +'--lock=[Check the specified lock file. (If value is not provided, defaults to "./deno.lock")]' \ +'-c+[Configure different aspects of deno including TypeScript, linting, and code formatting Typically the configuration file will be called \`deno.json\` or \`deno.jsonc\` and automatically detected; in that case this flag is not necessary. Docs\: https\://docs.deno.com/go/config]:FILE:_files' \ +'--config=[Configure different aspects of deno including TypeScript, linting, and code formatting Typically the configuration file will be called \`deno.json\` or \`deno.jsonc\` and automatically detected; in that case this flag is not necessary. Docs\: https\://docs.deno.com/go/config]:FILE:_files' \ +'--import-map=[Load import map file from local file or remote URL Docs\: https\://docs.deno.com/runtime/manual/basics/import_maps]:FILE:_files' \ +'--node-modules-dir=[Sets the node modules management mode for npm packages]' \ +'--vendor=[Toggles local vendor folder usage for remote modules and a node_modules folder for npm packages]' \ +'--unstable[Enable all unstable features and APIs. Instead of using this flag, consider enabling individual unstable features To view the list of individual unstable feature flags, run this command again with --help=unstable]' \ +'--unstable-bare-node-builtins[Enable unstable bare node builtins feature]' \ +'--unstable-detect-cjs[Reads the package.json type field in a project to treat .js files as .cjs]' \ +'--unstable-byonm[]' \ +'--unstable-sloppy-imports[Enable unstable resolving of specifiers by extension probing, .js to .ts, and directory probing]' \ +'--unstable-broadcast-channel[Enable unstable \`BroadcastChannel\` API]' \ +'--unstable-cron[Enable unstable Deno.cron API]' \ +'--unstable-ffi[Enable unstable FFI APIs]' \ +'--unstable-fs[Enable unstable file system APIs]' \ +'--unstable-http[Enable unstable HTTP APIs]' \ +'--unstable-kv[Enable unstable Key-Value store APIs]' \ +'--unstable-net[Enable unstable net APIs]' \ +'--unstable-process[Enable unstable process APIs]' \ +'--unstable-temporal[Enable unstable Temporal API]' \ +'--unstable-unsafe-proto[Enable unsafe __proto__ support. This is a security risk.]' \ +'--unstable-webgpu[Enable unstable \`WebGPU\` APIs]' \ +'--unstable-worker-options[Enable unstable Web Worker APIs]' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +'(-c --config)--no-config[Disable automatic loading of the configuration file]' \ +'--no-remote[Do not resolve remote modules]' \ +'--no-npm[Do not resolve npm modules]' \ +'(--lock)--no-lock[Disable auto discovery of the lock file]' \ +'--json[UNSTABLE\: Outputs the information in JSON format]' \ +'::file:_files' \ +&& ret=0 +;; +(install) +_arguments "${_arguments_options[@]}" : \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'--no-check=[Skip type-checking. If the value of "remote" is supplied, diagnostic errors from remote modules will be ignored]' \ +'--import-map=[Load import map file from local file or remote URL Docs\: https\://docs.deno.com/runtime/manual/basics/import_maps]:FILE:_files' \ +'--node-modules-dir=[Sets the node modules management mode for npm packages]' \ +'--vendor=[Toggles local vendor folder usage for remote modules and a node_modules folder for npm packages]' \ +'-c+[Configure different aspects of deno including TypeScript, linting, and code formatting Typically the configuration file will be called \`deno.json\` or \`deno.jsonc\` and automatically detected; in that case this flag is not necessary. Docs\: https\://docs.deno.com/go/config]:FILE:_files' \ +'--config=[Configure different aspects of deno including TypeScript, linting, and code formatting Typically the configuration file will be called \`deno.json\` or \`deno.jsonc\` and automatically detected; in that case this flag is not necessary. Docs\: https\://docs.deno.com/go/config]:FILE:_files' \ +'*-r+[Reload source code cache (recompile TypeScript) no value Reload everything jsr\:@std/http/file-server,jsr\:@std/assert/assert-equals Reloads specific modules npm\: Reload all npm modules npm\:chalk Reload specific npm module]' \ +'*--reload=[Reload source code cache (recompile TypeScript) no value Reload everything jsr\:@std/http/file-server,jsr\:@std/assert/assert-equals Reloads specific modules npm\: Reload all npm modules npm\:chalk Reload specific npm module]' \ +'--lock=[Check the specified lock file. (If value is not provided, defaults to "./deno.lock")]' \ +'--cert=[Load certificate authority from PEM encoded file]:FILE:_files' \ +'--unsafely-ignore-certificate-errors=[DANGER\: Disables verification of TLS certificates]' \ +'--inspect=[Activate inspector on host\:port \[default\: 127.0.0.1\:9229\]]' \ +'--inspect-brk=[Activate inspector on host\:port, wait for debugger to connect and break at the start of user script]' \ +'--inspect-wait=[Activate inspector on host\:port and wait for debugger to connect before running user code]' \ +'--frozen=[Error out if lockfile is out of date]' \ +'--location=[Value of globalThis.location used by some web APIs]:HREF:_urls' \ +'--v8-flags=[To see a list of all available flags use --v8-flags=--help Flags can also be set via the DENO_V8_FLAGS environment variable. Any flags set with this flag are appended after the DENO_V8_FLAGS environment variable]' \ +'--seed=[Set the random number generator seed]:NUMBER: ' \ +'--strace-ops=[Trace low-level op calls]' \ +'*-R+[Allow file system read access. Optionally specify allowed paths]' \ +'*--allow-read=[Allow file system read access. Optionally specify allowed paths]' \ +'*--deny-read=[Deny file system read access. Optionally specify denied paths]' \ +'*-W+[Allow file system write access. Optionally specify allowed paths]' \ +'*--allow-write=[Allow file system write access. Optionally specify allowed paths]' \ +'*--deny-write=[Deny file system write access. Optionally specify denied paths]' \ +'-N+[Allow network access. Optionally specify allowed IP addresses and host names, with ports as necessary]' \ +'--allow-net=[Allow network access. Optionally specify allowed IP addresses and host names, with ports as necessary]' \ +'--deny-net=[Deny network access. Optionally specify denied IP addresses and host names, with ports as necessary]' \ +'-E+[Allow access to system environment information. Optionally specify accessible environment variables]' \ +'--allow-env=[Allow access to system environment information. Optionally specify accessible environment variables]' \ +'--deny-env=[Deny access to system environment information. Optionally specify accessible environment variables]' \ +'-S+[Allow access to OS information. Optionally allow specific APIs by function name]' \ +'--allow-sys=[Allow access to OS information. Optionally allow specific APIs by function name]' \ +'--deny-sys=[Deny access to OS information. Optionally deny specific APIs by function name]' \ +'--allow-run=[Allow running subprocesses. Optionally specify allowed runnable program names]' \ +'--deny-run=[Deny running subprocesses. Optionally specify denied runnable program names]' \ +'*--allow-ffi=[(Unstable) Allow loading dynamic libraries. Optionally specify allowed directories or files]' \ +'*--deny-ffi=[(Unstable) Deny loading dynamic libraries. Optionally specify denied directories or files]' \ +'-I+[Allow importing from remote hosts. Optionally specify allowed IP addresses and host names, with ports as necessary. Default value\: deno.land\:443,jsr.io\:443,esm.sh\:443,cdn.jsdelivr.net\:443,raw.githubusercontent.com\:443,user.githubusercontent.com\:443]' \ +'--allow-import=[Allow importing from remote hosts. Optionally specify allowed IP addresses and host names, with ports as necessary. Default value\: deno.land\:443,jsr.io\:443,esm.sh\:443,cdn.jsdelivr.net\:443,raw.githubusercontent.com\:443,user.githubusercontent.com\:443]' \ +'(--no-check)--check=[Set type-checking behavior. This subcommand type-checks local modules by default, so adding --check is redundant If the value of "all" is supplied, remote modules will be included. Alternatively, the '\''deno check'\'' subcommand can be used]' \ +'*--allow-scripts=[Allow running npm lifecycle scripts for the given packages Note\: Scripts will only be executed when using a node_modules directory (\`--node-modules-dir\`)]' \ +'-n+[Executable file name]: : ' \ +'--name=[Executable file name]: : ' \ +'--root=[Installation root]: :_files -/' \ +'--env-file=[Load environment variables from local file Only the first environment variable with a given key is used. Existing process environment variables are not overwritten.]' \ +'--unstable[Enable all unstable features and APIs. Instead of using this flag, consider enabling individual unstable features To view the list of individual unstable feature flags, run this command again with --help=unstable]' \ +'--unstable-bare-node-builtins[Enable unstable bare node builtins feature]' \ +'--unstable-detect-cjs[Reads the package.json type field in a project to treat .js files as .cjs]' \ +'--unstable-byonm[]' \ +'--unstable-sloppy-imports[Enable unstable resolving of specifiers by extension probing, .js to .ts, and directory probing]' \ +'--unstable-broadcast-channel[Enable unstable \`BroadcastChannel\` API]' \ +'--unstable-cron[Enable unstable Deno.cron API]' \ +'--unstable-ffi[Enable unstable FFI APIs]' \ +'--unstable-fs[Enable unstable file system APIs]' \ +'--unstable-http[Enable unstable HTTP APIs]' \ +'--unstable-kv[Enable unstable Key-Value store APIs]' \ +'--unstable-net[Enable unstable net APIs]' \ +'--unstable-process[Enable unstable process APIs]' \ +'--unstable-temporal[Enable unstable Temporal API]' \ +'--unstable-unsafe-proto[Enable unsafe __proto__ support. This is a security risk.]' \ +'--unstable-webgpu[Enable unstable \`WebGPU\` APIs]' \ +'--unstable-worker-options[Enable unstable Web Worker APIs]' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +'--no-remote[Do not resolve remote modules]' \ +'--no-npm[Do not resolve npm modules]' \ +'(-c --config)--no-config[Disable automatic loading of the configuration file]' \ +'(--lock)--no-lock[Disable auto discovery of the lock file]' \ +'--cached-only[Require that remote dependencies are already cached]' \ +'--enable-testing-features-do-not-use[INTERNAL\: Enable internal features used during integration testing]' \ +'(-R --allow-read -W --allow-write -N --allow-net -E --allow-env --allow-run -S --allow-sys --allow-ffi -I --allow-import)-A[Allow all permissions]' \ +'(-R --allow-read -W --allow-write -N --allow-net -E --allow-env --allow-run -S --allow-sys --allow-ffi -I --allow-import)--allow-all[Allow all permissions]' \ +'--allow-hrtime[REMOVED in Deno 2.0]' \ +'--deny-hrtime[REMOVED in Deno 2.0]' \ +'--no-prompt[Always throw if required permission wasn'\''t passed]' \ +'-f[Forcefully overwrite existing installation]' \ +'--force[Forcefully overwrite existing installation]' \ +'-g[Install a package or script as a globally available executable]' \ +'--global[Install a package or script as a globally available executable]' \ +'(-g --global)-e[Install dependents of the specified entrypoint(s)]' \ +'(-g --global)--entrypoint[Install dependents of the specified entrypoint(s)]' \ +'(-e --entrypoint -g --global)-D[Add as a dev dependency]' \ +'(-e --entrypoint -g --global)--dev[Add as a dev dependency]' \ +'*::cmd:_files' \ +&& ret=0 +;; +(i) +_arguments "${_arguments_options[@]}" : \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'--no-check=[Skip type-checking. If the value of "remote" is supplied, diagnostic errors from remote modules will be ignored]' \ +'--import-map=[Load import map file from local file or remote URL Docs\: https\://docs.deno.com/runtime/manual/basics/import_maps]:FILE:_files' \ +'--node-modules-dir=[Sets the node modules management mode for npm packages]' \ +'--vendor=[Toggles local vendor folder usage for remote modules and a node_modules folder for npm packages]' \ +'-c+[Configure different aspects of deno including TypeScript, linting, and code formatting Typically the configuration file will be called \`deno.json\` or \`deno.jsonc\` and automatically detected; in that case this flag is not necessary. Docs\: https\://docs.deno.com/go/config]:FILE:_files' \ +'--config=[Configure different aspects of deno including TypeScript, linting, and code formatting Typically the configuration file will be called \`deno.json\` or \`deno.jsonc\` and automatically detected; in that case this flag is not necessary. Docs\: https\://docs.deno.com/go/config]:FILE:_files' \ +'*-r+[Reload source code cache (recompile TypeScript) no value Reload everything jsr\:@std/http/file-server,jsr\:@std/assert/assert-equals Reloads specific modules npm\: Reload all npm modules npm\:chalk Reload specific npm module]' \ +'*--reload=[Reload source code cache (recompile TypeScript) no value Reload everything jsr\:@std/http/file-server,jsr\:@std/assert/assert-equals Reloads specific modules npm\: Reload all npm modules npm\:chalk Reload specific npm module]' \ +'--lock=[Check the specified lock file. (If value is not provided, defaults to "./deno.lock")]' \ +'--cert=[Load certificate authority from PEM encoded file]:FILE:_files' \ +'--unsafely-ignore-certificate-errors=[DANGER\: Disables verification of TLS certificates]' \ +'--inspect=[Activate inspector on host\:port \[default\: 127.0.0.1\:9229\]]' \ +'--inspect-brk=[Activate inspector on host\:port, wait for debugger to connect and break at the start of user script]' \ +'--inspect-wait=[Activate inspector on host\:port and wait for debugger to connect before running user code]' \ +'--frozen=[Error out if lockfile is out of date]' \ +'--location=[Value of globalThis.location used by some web APIs]:HREF:_urls' \ +'--v8-flags=[To see a list of all available flags use --v8-flags=--help Flags can also be set via the DENO_V8_FLAGS environment variable. Any flags set with this flag are appended after the DENO_V8_FLAGS environment variable]' \ +'--seed=[Set the random number generator seed]:NUMBER: ' \ +'--strace-ops=[Trace low-level op calls]' \ +'*-R+[Allow file system read access. Optionally specify allowed paths]' \ +'*--allow-read=[Allow file system read access. Optionally specify allowed paths]' \ +'*--deny-read=[Deny file system read access. Optionally specify denied paths]' \ +'*-W+[Allow file system write access. Optionally specify allowed paths]' \ +'*--allow-write=[Allow file system write access. Optionally specify allowed paths]' \ +'*--deny-write=[Deny file system write access. Optionally specify denied paths]' \ +'-N+[Allow network access. Optionally specify allowed IP addresses and host names, with ports as necessary]' \ +'--allow-net=[Allow network access. Optionally specify allowed IP addresses and host names, with ports as necessary]' \ +'--deny-net=[Deny network access. Optionally specify denied IP addresses and host names, with ports as necessary]' \ +'-E+[Allow access to system environment information. Optionally specify accessible environment variables]' \ +'--allow-env=[Allow access to system environment information. Optionally specify accessible environment variables]' \ +'--deny-env=[Deny access to system environment information. Optionally specify accessible environment variables]' \ +'-S+[Allow access to OS information. Optionally allow specific APIs by function name]' \ +'--allow-sys=[Allow access to OS information. Optionally allow specific APIs by function name]' \ +'--deny-sys=[Deny access to OS information. Optionally deny specific APIs by function name]' \ +'--allow-run=[Allow running subprocesses. Optionally specify allowed runnable program names]' \ +'--deny-run=[Deny running subprocesses. Optionally specify denied runnable program names]' \ +'*--allow-ffi=[(Unstable) Allow loading dynamic libraries. Optionally specify allowed directories or files]' \ +'*--deny-ffi=[(Unstable) Deny loading dynamic libraries. Optionally specify denied directories or files]' \ +'-I+[Allow importing from remote hosts. Optionally specify allowed IP addresses and host names, with ports as necessary. Default value\: deno.land\:443,jsr.io\:443,esm.sh\:443,cdn.jsdelivr.net\:443,raw.githubusercontent.com\:443,user.githubusercontent.com\:443]' \ +'--allow-import=[Allow importing from remote hosts. Optionally specify allowed IP addresses and host names, with ports as necessary. Default value\: deno.land\:443,jsr.io\:443,esm.sh\:443,cdn.jsdelivr.net\:443,raw.githubusercontent.com\:443,user.githubusercontent.com\:443]' \ +'(--no-check)--check=[Set type-checking behavior. This subcommand type-checks local modules by default, so adding --check is redundant If the value of "all" is supplied, remote modules will be included. Alternatively, the '\''deno check'\'' subcommand can be used]' \ +'*--allow-scripts=[Allow running npm lifecycle scripts for the given packages Note\: Scripts will only be executed when using a node_modules directory (\`--node-modules-dir\`)]' \ +'-n+[Executable file name]: : ' \ +'--name=[Executable file name]: : ' \ +'--root=[Installation root]: :_files -/' \ +'--env-file=[Load environment variables from local file Only the first environment variable with a given key is used. Existing process environment variables are not overwritten.]' \ +'--unstable[Enable all unstable features and APIs. Instead of using this flag, consider enabling individual unstable features To view the list of individual unstable feature flags, run this command again with --help=unstable]' \ +'--unstable-bare-node-builtins[Enable unstable bare node builtins feature]' \ +'--unstable-detect-cjs[Reads the package.json type field in a project to treat .js files as .cjs]' \ +'--unstable-byonm[]' \ +'--unstable-sloppy-imports[Enable unstable resolving of specifiers by extension probing, .js to .ts, and directory probing]' \ +'--unstable-broadcast-channel[Enable unstable \`BroadcastChannel\` API]' \ +'--unstable-cron[Enable unstable Deno.cron API]' \ +'--unstable-ffi[Enable unstable FFI APIs]' \ +'--unstable-fs[Enable unstable file system APIs]' \ +'--unstable-http[Enable unstable HTTP APIs]' \ +'--unstable-kv[Enable unstable Key-Value store APIs]' \ +'--unstable-net[Enable unstable net APIs]' \ +'--unstable-process[Enable unstable process APIs]' \ +'--unstable-temporal[Enable unstable Temporal API]' \ +'--unstable-unsafe-proto[Enable unsafe __proto__ support. This is a security risk.]' \ +'--unstable-webgpu[Enable unstable \`WebGPU\` APIs]' \ +'--unstable-worker-options[Enable unstable Web Worker APIs]' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +'--no-remote[Do not resolve remote modules]' \ +'--no-npm[Do not resolve npm modules]' \ +'(-c --config)--no-config[Disable automatic loading of the configuration file]' \ +'(--lock)--no-lock[Disable auto discovery of the lock file]' \ +'--cached-only[Require that remote dependencies are already cached]' \ +'--enable-testing-features-do-not-use[INTERNAL\: Enable internal features used during integration testing]' \ +'(-R --allow-read -W --allow-write -N --allow-net -E --allow-env --allow-run -S --allow-sys --allow-ffi -I --allow-import)-A[Allow all permissions]' \ +'(-R --allow-read -W --allow-write -N --allow-net -E --allow-env --allow-run -S --allow-sys --allow-ffi -I --allow-import)--allow-all[Allow all permissions]' \ +'--allow-hrtime[REMOVED in Deno 2.0]' \ +'--deny-hrtime[REMOVED in Deno 2.0]' \ +'--no-prompt[Always throw if required permission wasn'\''t passed]' \ +'-f[Forcefully overwrite existing installation]' \ +'--force[Forcefully overwrite existing installation]' \ +'-g[Install a package or script as a globally available executable]' \ +'--global[Install a package or script as a globally available executable]' \ +'(-g --global)-e[Install dependents of the specified entrypoint(s)]' \ +'(-g --global)--entrypoint[Install dependents of the specified entrypoint(s)]' \ +'(-e --entrypoint -g --global)-D[Add as a dev dependency]' \ +'(-e --entrypoint -g --global)--dev[Add as a dev dependency]' \ +'*::cmd:_files' \ +&& ret=0 +;; +(json_reference) +_arguments "${_arguments_options[@]}" : \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +&& ret=0 +;; +(jupyter) +_arguments "${_arguments_options[@]}" : \ +'(--install)--conn=[Path to JSON file describing connection parameters, provided by Jupyter]: :_files' \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'--unstable[Enable all unstable features and APIs. Instead of using this flag, consider enabling individual unstable features To view the list of individual unstable feature flags, run this command again with --help=unstable]' \ +'--unstable-bare-node-builtins[Enable unstable bare node builtins feature]' \ +'--unstable-detect-cjs[Reads the package.json type field in a project to treat .js files as .cjs]' \ +'--unstable-byonm[]' \ +'--unstable-sloppy-imports[Enable unstable resolving of specifiers by extension probing, .js to .ts, and directory probing]' \ +'--unstable-broadcast-channel[Enable unstable \`BroadcastChannel\` API]' \ +'--unstable-cron[Enable unstable Deno.cron API]' \ +'--unstable-ffi[Enable unstable FFI APIs]' \ +'--unstable-fs[Enable unstable file system APIs]' \ +'--unstable-http[Enable unstable HTTP APIs]' \ +'--unstable-kv[Enable unstable Key-Value store APIs]' \ +'--unstable-net[Enable unstable net APIs]' \ +'--unstable-process[Enable unstable process APIs]' \ +'--unstable-temporal[Enable unstable Temporal API]' \ +'--unstable-unsafe-proto[Enable unsafe __proto__ support. This is a security risk.]' \ +'--unstable-webgpu[Enable unstable \`WebGPU\` APIs]' \ +'--unstable-worker-options[Enable unstable Web Worker APIs]' \ +'(--kernel)--install[Installs kernelspec, requires '\''jupyter'\'' command to be available.]' \ +'(--install)--kernel[Start the kernel]' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +&& ret=0 +;; +(uninstall) +_arguments "${_arguments_options[@]}" : \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'--root=[Installation root]: :_files -/' \ +'--unstable[Enable all unstable features and APIs. Instead of using this flag, consider enabling individual unstable features To view the list of individual unstable feature flags, run this command again with --help=unstable]' \ +'--unstable-bare-node-builtins[Enable unstable bare node builtins feature]' \ +'--unstable-detect-cjs[Reads the package.json type field in a project to treat .js files as .cjs]' \ +'--unstable-byonm[]' \ +'--unstable-sloppy-imports[Enable unstable resolving of specifiers by extension probing, .js to .ts, and directory probing]' \ +'--unstable-broadcast-channel[Enable unstable \`BroadcastChannel\` API]' \ +'--unstable-cron[Enable unstable Deno.cron API]' \ +'--unstable-ffi[Enable unstable FFI APIs]' \ +'--unstable-fs[Enable unstable file system APIs]' \ +'--unstable-http[Enable unstable HTTP APIs]' \ +'--unstable-kv[Enable unstable Key-Value store APIs]' \ +'--unstable-net[Enable unstable net APIs]' \ +'--unstable-process[Enable unstable process APIs]' \ +'--unstable-temporal[Enable unstable Temporal API]' \ +'--unstable-unsafe-proto[Enable unsafe __proto__ support. This is a security risk.]' \ +'--unstable-webgpu[Enable unstable \`WebGPU\` APIs]' \ +'--unstable-worker-options[Enable unstable Web Worker APIs]' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +'-g[Remove globally installed package or module]' \ +'--global[Remove globally installed package or module]' \ +'::name-or-package:' \ +'*::additional-packages -- List of additional packages to remove:' \ +&& ret=0 +;; +(lsp) +_arguments "${_arguments_options[@]}" : \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +&& ret=0 +;; +(lint) +_arguments "${_arguments_options[@]}" : \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'--ext=[Specify the file extension to lint when reading from stdin.For example, use \`jsx\` to lint JSX files or \`tsx\` for TSX files.This argument is necessary because stdin input does not automatically infer the file type.Example usage\: \`cat file.jsx | deno lint - --ext=jsx\`.]:EXT: ' \ +'*--rules-tags=[Use set of rules with a tag]: : ' \ +'(--rules)--rules-include=[Include lint rules]: : ' \ +'(--rules)--rules-exclude=[Exclude lint rules]: : ' \ +'-c+[Configure different aspects of deno including TypeScript, linting, and code formatting Typically the configuration file will be called \`deno.json\` or \`deno.jsonc\` and automatically detected; in that case this flag is not necessary. Docs\: https\://docs.deno.com/go/config]:FILE:_files' \ +'--config=[Configure different aspects of deno including TypeScript, linting, and code formatting Typically the configuration file will be called \`deno.json\` or \`deno.jsonc\` and automatically detected; in that case this flag is not necessary. Docs\: https\://docs.deno.com/go/config]:FILE:_files' \ +'*--ignore=[Ignore linting particular source files]: :_files' \ +'*--watch-exclude=[Exclude provided files/patterns from watch mode]' \ +'--unstable[Enable all unstable features and APIs. Instead of using this flag, consider enabling individual unstable features To view the list of individual unstable feature flags, run this command again with --help=unstable]' \ +'--unstable-bare-node-builtins[Enable unstable bare node builtins feature]' \ +'--unstable-detect-cjs[Reads the package.json type field in a project to treat .js files as .cjs]' \ +'--unstable-byonm[]' \ +'--unstable-sloppy-imports[Enable unstable resolving of specifiers by extension probing, .js to .ts, and directory probing]' \ +'--unstable-broadcast-channel[Enable unstable \`BroadcastChannel\` API]' \ +'--unstable-cron[Enable unstable Deno.cron API]' \ +'--unstable-ffi[Enable unstable FFI APIs]' \ +'--unstable-fs[Enable unstable file system APIs]' \ +'--unstable-http[Enable unstable HTTP APIs]' \ +'--unstable-kv[Enable unstable Key-Value store APIs]' \ +'--unstable-net[Enable unstable net APIs]' \ +'--unstable-process[Enable unstable process APIs]' \ +'--unstable-temporal[Enable unstable Temporal API]' \ +'--unstable-unsafe-proto[Enable unsafe __proto__ support. This is a security risk.]' \ +'--unstable-webgpu[Enable unstable \`WebGPU\` APIs]' \ +'--unstable-worker-options[Enable unstable Web Worker APIs]' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +'--fix[Fix any linting errors for rules that support it]' \ +'--rules[List available rules]' \ +'(-c --config)--no-config[Disable automatic loading of the configuration file]' \ +'--json[Output lint result in JSON format]' \ +'(--json)--compact[Output lint result in compact format]' \ +'--watch[Watch for file changes and restart process automatically. Only local files from entry point module graph are watched.]' \ +'--no-clear-screen[Do not clear terminal screen when under watch mode]' \ +'*::files:_files' \ +&& ret=0 +;; +(publish) +_arguments "${_arguments_options[@]}" : \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'--token=[The API token to use when publishing. If unset, interactive authentication is be used]: : ' \ +'-c+[Configure different aspects of deno including TypeScript, linting, and code formatting Typically the configuration file will be called \`deno.json\` or \`deno.jsonc\` and automatically detected; in that case this flag is not necessary. Docs\: https\://docs.deno.com/go/config]:FILE:_files' \ +'--config=[Configure different aspects of deno including TypeScript, linting, and code formatting Typically the configuration file will be called \`deno.json\` or \`deno.jsonc\` and automatically detected; in that case this flag is not necessary. Docs\: https\://docs.deno.com/go/config]:FILE:_files' \ +'(--no-check)--check=[Set type-checking behavior. This subcommand type-checks local modules by default, so adding --check is redundant If the value of "all" is supplied, remote modules will be included. Alternatively, the '\''deno check'\'' subcommand can be used]' \ +'--no-check=[Skip type-checking. If the value of "remote" is supplied, diagnostic errors from remote modules will be ignored]' \ +'--unstable[Enable all unstable features and APIs. Instead of using this flag, consider enabling individual unstable features To view the list of individual unstable feature flags, run this command again with --help=unstable]' \ +'--unstable-bare-node-builtins[Enable unstable bare node builtins feature]' \ +'--unstable-detect-cjs[Reads the package.json type field in a project to treat .js files as .cjs]' \ +'--unstable-byonm[]' \ +'--unstable-sloppy-imports[Enable unstable resolving of specifiers by extension probing, .js to .ts, and directory probing]' \ +'--unstable-broadcast-channel[Enable unstable \`BroadcastChannel\` API]' \ +'--unstable-cron[Enable unstable Deno.cron API]' \ +'--unstable-ffi[Enable unstable FFI APIs]' \ +'--unstable-fs[Enable unstable file system APIs]' \ +'--unstable-http[Enable unstable HTTP APIs]' \ +'--unstable-kv[Enable unstable Key-Value store APIs]' \ +'--unstable-net[Enable unstable net APIs]' \ +'--unstable-process[Enable unstable process APIs]' \ +'--unstable-temporal[Enable unstable Temporal API]' \ +'--unstable-unsafe-proto[Enable unsafe __proto__ support. This is a security risk.]' \ +'--unstable-webgpu[Enable unstable \`WebGPU\` APIs]' \ +'--unstable-worker-options[Enable unstable Web Worker APIs]' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +'(-c --config)--no-config[Disable automatic loading of the configuration file]' \ +'--dry-run[Prepare the package for publishing performing all checks and validations without uploading]' \ +'--allow-slow-types[Allow publishing with slow types]' \ +'--allow-dirty[Allow publishing if the repository has uncommitted changed]' \ +'--no-provenance[Disable provenance attestation. Enabled by default on Github actions, publicly links the package to where it was built and published from.]' \ +&& ret=0 +;; +(repl) +_arguments "${_arguments_options[@]}" : \ +'--env-file=[Load environment variables from local file Only the first environment variable with a given key is used. Existing process environment variables are not overwritten.]' \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'--import-map=[Load import map file from local file or remote URL Docs\: https\://docs.deno.com/runtime/manual/basics/import_maps]:FILE:_files' \ +'--node-modules-dir=[Sets the node modules management mode for npm packages]' \ +'--vendor=[Toggles local vendor folder usage for remote modules and a node_modules folder for npm packages]' \ +'-c+[Configure different aspects of deno including TypeScript, linting, and code formatting Typically the configuration file will be called \`deno.json\` or \`deno.jsonc\` and automatically detected; in that case this flag is not necessary. Docs\: https\://docs.deno.com/go/config]:FILE:_files' \ +'--config=[Configure different aspects of deno including TypeScript, linting, and code formatting Typically the configuration file will be called \`deno.json\` or \`deno.jsonc\` and automatically detected; in that case this flag is not necessary. Docs\: https\://docs.deno.com/go/config]:FILE:_files' \ +'*-r+[Reload source code cache (recompile TypeScript) no value Reload everything jsr\:@std/http/file-server,jsr\:@std/assert/assert-equals Reloads specific modules npm\: Reload all npm modules npm\:chalk Reload specific npm module]' \ +'*--reload=[Reload source code cache (recompile TypeScript) no value Reload everything jsr\:@std/http/file-server,jsr\:@std/assert/assert-equals Reloads specific modules npm\: Reload all npm modules npm\:chalk Reload specific npm module]' \ +'--lock=[Check the specified lock file. (If value is not provided, defaults to "./deno.lock")]' \ +'--cert=[Load certificate authority from PEM encoded file]:FILE:_files' \ +'--unsafely-ignore-certificate-errors=[DANGER\: Disables verification of TLS certificates]' \ +'--inspect=[Activate inspector on host\:port \[default\: 127.0.0.1\:9229\]]' \ +'--inspect-brk=[Activate inspector on host\:port, wait for debugger to connect and break at the start of user script]' \ +'--inspect-wait=[Activate inspector on host\:port and wait for debugger to connect before running user code]' \ +'*-R+[Allow file system read access. Optionally specify allowed paths]' \ +'*--allow-read=[Allow file system read access. Optionally specify allowed paths]' \ +'*--deny-read=[Deny file system read access. Optionally specify denied paths]' \ +'*-W+[Allow file system write access. Optionally specify allowed paths]' \ +'*--allow-write=[Allow file system write access. Optionally specify allowed paths]' \ +'*--deny-write=[Deny file system write access. Optionally specify denied paths]' \ +'-N+[Allow network access. Optionally specify allowed IP addresses and host names, with ports as necessary]' \ +'--allow-net=[Allow network access. Optionally specify allowed IP addresses and host names, with ports as necessary]' \ +'--deny-net=[Deny network access. Optionally specify denied IP addresses and host names, with ports as necessary]' \ +'-E+[Allow access to system environment information. Optionally specify accessible environment variables]' \ +'--allow-env=[Allow access to system environment information. Optionally specify accessible environment variables]' \ +'--deny-env=[Deny access to system environment information. Optionally specify accessible environment variables]' \ +'-S+[Allow access to OS information. Optionally allow specific APIs by function name]' \ +'--allow-sys=[Allow access to OS information. Optionally allow specific APIs by function name]' \ +'--deny-sys=[Deny access to OS information. Optionally deny specific APIs by function name]' \ +'--allow-run=[Allow running subprocesses. Optionally specify allowed runnable program names]' \ +'--deny-run=[Deny running subprocesses. Optionally specify denied runnable program names]' \ +'*--allow-ffi=[(Unstable) Allow loading dynamic libraries. Optionally specify allowed directories or files]' \ +'*--deny-ffi=[(Unstable) Deny loading dynamic libraries. Optionally specify denied directories or files]' \ +'-I+[Allow importing from remote hosts. Optionally specify allowed IP addresses and host names, with ports as necessary. Default value\: deno.land\:443,jsr.io\:443,esm.sh\:443,cdn.jsdelivr.net\:443,raw.githubusercontent.com\:443,user.githubusercontent.com\:443]' \ +'--allow-import=[Allow importing from remote hosts. Optionally specify allowed IP addresses and host names, with ports as necessary. Default value\: deno.land\:443,jsr.io\:443,esm.sh\:443,cdn.jsdelivr.net\:443,raw.githubusercontent.com\:443,user.githubusercontent.com\:443]' \ +'--frozen=[Error out if lockfile is out of date]' \ +'--location=[Value of globalThis.location used by some web APIs]:HREF:_urls' \ +'--v8-flags=[To see a list of all available flags use --v8-flags=--help Flags can also be set via the DENO_V8_FLAGS environment variable. Any flags set with this flag are appended after the DENO_V8_FLAGS environment variable]' \ +'--seed=[Set the random number generator seed]:NUMBER: ' \ +'--strace-ops=[Trace low-level op calls]' \ +'*--eval-file=[Evaluates the provided file(s) as scripts when the REPL starts. Accepts file paths and URLs]: :_files' \ +'--eval=[Evaluates the provided code when the REPL starts]:code: ' \ +'--unstable[Enable all unstable features and APIs. Instead of using this flag, consider enabling individual unstable features To view the list of individual unstable feature flags, run this command again with --help=unstable]' \ +'--unstable-bare-node-builtins[Enable unstable bare node builtins feature]' \ +'--unstable-detect-cjs[Reads the package.json type field in a project to treat .js files as .cjs]' \ +'--unstable-byonm[]' \ +'--unstable-sloppy-imports[Enable unstable resolving of specifiers by extension probing, .js to .ts, and directory probing]' \ +'--unstable-broadcast-channel[Enable unstable \`BroadcastChannel\` API]' \ +'--unstable-cron[Enable unstable Deno.cron API]' \ +'--unstable-ffi[Enable unstable FFI APIs]' \ +'--unstable-fs[Enable unstable file system APIs]' \ +'--unstable-http[Enable unstable HTTP APIs]' \ +'--unstable-kv[Enable unstable Key-Value store APIs]' \ +'--unstable-net[Enable unstable net APIs]' \ +'--unstable-process[Enable unstable process APIs]' \ +'--unstable-temporal[Enable unstable Temporal API]' \ +'--unstable-unsafe-proto[Enable unsafe __proto__ support. This is a security risk.]' \ +'--unstable-webgpu[Enable unstable \`WebGPU\` APIs]' \ +'--unstable-worker-options[Enable unstable Web Worker APIs]' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +'--no-remote[Do not resolve remote modules]' \ +'--no-npm[Do not resolve npm modules]' \ +'(-c --config)--no-config[Disable automatic loading of the configuration file]' \ +'(--lock)--no-lock[Disable auto discovery of the lock file]' \ +'(-R --allow-read -W --allow-write -N --allow-net -E --allow-env --allow-run -S --allow-sys --allow-ffi -I --allow-import)-A[Allow all permissions]' \ +'(-R --allow-read -W --allow-write -N --allow-net -E --allow-env --allow-run -S --allow-sys --allow-ffi -I --allow-import)--allow-all[Allow all permissions]' \ +'--allow-hrtime[REMOVED in Deno 2.0]' \ +'--deny-hrtime[REMOVED in Deno 2.0]' \ +'--no-prompt[Always throw if required permission wasn'\''t passed]' \ +'--cached-only[Require that remote dependencies are already cached]' \ +'--enable-testing-features-do-not-use[INTERNAL\: Enable internal features used during integration testing]' \ +'*::args:' \ +&& ret=0 +;; +(task) +_arguments "${_arguments_options[@]}" : \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'-c+[Configure different aspects of deno including TypeScript, linting, and code formatting Typically the configuration file will be called \`deno.json\` or \`deno.jsonc\` and automatically detected; in that case this flag is not necessary. Docs\: https\://docs.deno.com/go/config]:FILE:_files' \ +'--config=[Configure different aspects of deno including TypeScript, linting, and code formatting Typically the configuration file will be called \`deno.json\` or \`deno.jsonc\` and automatically detected; in that case this flag is not necessary. Docs\: https\://docs.deno.com/go/config]:FILE:_files' \ +'--cwd=[Specify the directory to run the task in]:DIR:_files -/' \ +'--node-modules-dir=[Sets the node modules management mode for npm packages]' \ +'--unstable[Enable all unstable features and APIs. Instead of using this flag, consider enabling individual unstable features To view the list of individual unstable feature flags, run this command again with --help=unstable]' \ +'--unstable-bare-node-builtins[Enable unstable bare node builtins feature]' \ +'--unstable-detect-cjs[Reads the package.json type field in a project to treat .js files as .cjs]' \ +'--unstable-byonm[]' \ +'--unstable-sloppy-imports[Enable unstable resolving of specifiers by extension probing, .js to .ts, and directory probing]' \ +'--unstable-broadcast-channel[Enable unstable \`BroadcastChannel\` API]' \ +'--unstable-cron[Enable unstable Deno.cron API]' \ +'--unstable-ffi[Enable unstable FFI APIs]' \ +'--unstable-fs[Enable unstable file system APIs]' \ +'--unstable-http[Enable unstable HTTP APIs]' \ +'--unstable-kv[Enable unstable Key-Value store APIs]' \ +'--unstable-net[Enable unstable net APIs]' \ +'--unstable-process[Enable unstable process APIs]' \ +'--unstable-temporal[Enable unstable Temporal API]' \ +'--unstable-unsafe-proto[Enable unsafe __proto__ support. This is a security risk.]' \ +'--unstable-webgpu[Enable unstable \`WebGPU\` APIs]' \ +'--unstable-worker-options[Enable unstable Web Worker APIs]' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +&& ret=0 +;; +(test) +_arguments "${_arguments_options[@]}" : \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'--no-check=[Skip type-checking. If the value of "remote" is supplied, diagnostic errors from remote modules will be ignored]' \ +'--import-map=[Load import map file from local file or remote URL Docs\: https\://docs.deno.com/runtime/manual/basics/import_maps]:FILE:_files' \ +'--node-modules-dir=[Sets the node modules management mode for npm packages]' \ +'--vendor=[Toggles local vendor folder usage for remote modules and a node_modules folder for npm packages]' \ +'-c+[Configure different aspects of deno including TypeScript, linting, and code formatting Typically the configuration file will be called \`deno.json\` or \`deno.jsonc\` and automatically detected; in that case this flag is not necessary. Docs\: https\://docs.deno.com/go/config]:FILE:_files' \ +'--config=[Configure different aspects of deno including TypeScript, linting, and code formatting Typically the configuration file will be called \`deno.json\` or \`deno.jsonc\` and automatically detected; in that case this flag is not necessary. Docs\: https\://docs.deno.com/go/config]:FILE:_files' \ +'*-r+[Reload source code cache (recompile TypeScript) no value Reload everything jsr\:@std/http/file-server,jsr\:@std/assert/assert-equals Reloads specific modules npm\: Reload all npm modules npm\:chalk Reload specific npm module]' \ +'*--reload=[Reload source code cache (recompile TypeScript) no value Reload everything jsr\:@std/http/file-server,jsr\:@std/assert/assert-equals Reloads specific modules npm\: Reload all npm modules npm\:chalk Reload specific npm module]' \ +'--lock=[Check the specified lock file. (If value is not provided, defaults to "./deno.lock")]' \ +'--cert=[Load certificate authority from PEM encoded file]:FILE:_files' \ +'--unsafely-ignore-certificate-errors=[DANGER\: Disables verification of TLS certificates]' \ +'*-R+[Allow file system read access. Optionally specify allowed paths]' \ +'*--allow-read=[Allow file system read access. Optionally specify allowed paths]' \ +'*--deny-read=[Deny file system read access. Optionally specify denied paths]' \ +'*-W+[Allow file system write access. Optionally specify allowed paths]' \ +'*--allow-write=[Allow file system write access. Optionally specify allowed paths]' \ +'*--deny-write=[Deny file system write access. Optionally specify denied paths]' \ +'-N+[Allow network access. Optionally specify allowed IP addresses and host names, with ports as necessary]' \ +'--allow-net=[Allow network access. Optionally specify allowed IP addresses and host names, with ports as necessary]' \ +'--deny-net=[Deny network access. Optionally specify denied IP addresses and host names, with ports as necessary]' \ +'-E+[Allow access to system environment information. Optionally specify accessible environment variables]' \ +'--allow-env=[Allow access to system environment information. Optionally specify accessible environment variables]' \ +'--deny-env=[Deny access to system environment information. Optionally specify accessible environment variables]' \ +'-S+[Allow access to OS information. Optionally allow specific APIs by function name]' \ +'--allow-sys=[Allow access to OS information. Optionally allow specific APIs by function name]' \ +'--deny-sys=[Deny access to OS information. Optionally deny specific APIs by function name]' \ +'--allow-run=[Allow running subprocesses. Optionally specify allowed runnable program names]' \ +'--deny-run=[Deny running subprocesses. Optionally specify denied runnable program names]' \ +'*--allow-ffi=[(Unstable) Allow loading dynamic libraries. Optionally specify allowed directories or files]' \ +'*--deny-ffi=[(Unstable) Deny loading dynamic libraries. Optionally specify denied directories or files]' \ +'-I+[Allow importing from remote hosts. Optionally specify allowed IP addresses and host names, with ports as necessary. Default value\: deno.land\:443,jsr.io\:443,esm.sh\:443,cdn.jsdelivr.net\:443,raw.githubusercontent.com\:443,user.githubusercontent.com\:443]' \ +'--allow-import=[Allow importing from remote hosts. Optionally specify allowed IP addresses and host names, with ports as necessary. Default value\: deno.land\:443,jsr.io\:443,esm.sh\:443,cdn.jsdelivr.net\:443,raw.githubusercontent.com\:443,user.githubusercontent.com\:443]' \ +'--inspect=[Activate inspector on host\:port \[default\: 127.0.0.1\:9229\]]' \ +'--inspect-brk=[Activate inspector on host\:port, wait for debugger to connect and break at the start of user script]' \ +'--inspect-wait=[Activate inspector on host\:port and wait for debugger to connect before running user code]' \ +'*--allow-scripts=[Allow running npm lifecycle scripts for the given packages Note\: Scripts will only be executed when using a node_modules directory (\`--node-modules-dir\`)]' \ +'--frozen=[Error out if lockfile is out of date]' \ +'--location=[Value of globalThis.location used by some web APIs]:HREF:_urls' \ +'--v8-flags=[To see a list of all available flags use --v8-flags=--help Flags can also be set via the DENO_V8_FLAGS environment variable. Any flags set with this flag are appended after the DENO_V8_FLAGS environment variable]' \ +'--seed=[Set the random number generator seed]:NUMBER: ' \ +'--strace-ops=[Trace low-level op calls]' \ +'(--no-check)--check=[Set type-checking behavior. This subcommand type-checks local modules by default, so adding --check is redundant If the value of "all" is supplied, remote modules will be included. Alternatively, the '\''deno check'\'' subcommand can be used]' \ +'*--ignore=[Ignore files]: :_files' \ +'--fail-fast=[Stop after N errors. Defaults to stopping after first failure]' \ +'--filter=[Run tests with this string or regexp pattern in the test name]: : ' \ +'--shuffle=[Shuffle the order in which the tests are run]' \ +'(--inspect --inspect-wait --inspect-brk)--coverage=[Collect coverage profile data into DIR. If DIR is not specified, it uses '\''coverage/'\'']' \ +'(--no-run --coverage)*--watch=[Watch for file changes and restart process automatically. Local files from entry point module graph are watched by default. Additional paths might be watched by passing them as arguments to this flag.]' \ +'*--watch-exclude=[Exclude provided files/patterns from watch mode]' \ +'--junit-path=[Write a JUnit XML test report to PATH. Use '\''-'\'' to write to stdout which is the default when PATH is not provided]:PATH:_files' \ +'--reporter=[Select reporter to use. Default to '\''pretty'\'']: :(pretty dot junit tap)' \ +'--env-file=[Load environment variables from local file Only the first environment variable with a given key is used. Existing process environment variables are not overwritten.]' \ +'--ext=[Set content type of the supplied file]: :(ts tsx js jsx)' \ +'--unstable[Enable all unstable features and APIs. Instead of using this flag, consider enabling individual unstable features To view the list of individual unstable feature flags, run this command again with --help=unstable]' \ +'--unstable-bare-node-builtins[Enable unstable bare node builtins feature]' \ +'--unstable-detect-cjs[Reads the package.json type field in a project to treat .js files as .cjs]' \ +'--unstable-byonm[]' \ +'--unstable-sloppy-imports[Enable unstable resolving of specifiers by extension probing, .js to .ts, and directory probing]' \ +'--unstable-broadcast-channel[Enable unstable \`BroadcastChannel\` API]' \ +'--unstable-cron[Enable unstable Deno.cron API]' \ +'--unstable-ffi[Enable unstable FFI APIs]' \ +'--unstable-fs[Enable unstable file system APIs]' \ +'--unstable-http[Enable unstable HTTP APIs]' \ +'--unstable-kv[Enable unstable Key-Value store APIs]' \ +'--unstable-net[Enable unstable net APIs]' \ +'--unstable-process[Enable unstable process APIs]' \ +'--unstable-temporal[Enable unstable Temporal API]' \ +'--unstable-unsafe-proto[Enable unsafe __proto__ support. This is a security risk.]' \ +'--unstable-webgpu[Enable unstable \`WebGPU\` APIs]' \ +'--unstable-worker-options[Enable unstable Web Worker APIs]' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +'--no-remote[Do not resolve remote modules]' \ +'--no-npm[Do not resolve npm modules]' \ +'(-c --config)--no-config[Disable automatic loading of the configuration file]' \ +'(--lock)--no-lock[Disable auto discovery of the lock file]' \ +'(-R --allow-read -W --allow-write -N --allow-net -E --allow-env --allow-run -S --allow-sys --allow-ffi -I --allow-import)-A[Allow all permissions]' \ +'(-R --allow-read -W --allow-write -N --allow-net -E --allow-env --allow-run -S --allow-sys --allow-ffi -I --allow-import)--allow-all[Allow all permissions]' \ +'--allow-hrtime[REMOVED in Deno 2.0]' \ +'--deny-hrtime[REMOVED in Deno 2.0]' \ +'--no-prompt[Always throw if required permission wasn'\''t passed]' \ +'--cached-only[Require that remote dependencies are already cached]' \ +'--enable-testing-features-do-not-use[INTERNAL\: Enable internal features used during integration testing]' \ +'--no-run[Cache test modules, but don'\''t run tests]' \ +'--trace-leaks[Enable tracing of leaks. Useful when debugging leaking ops in test, but impacts test execution time]' \ +'--doc[Evaluate code blocks in JSDoc and Markdown]' \ +'--permit-no-files[Don'\''t return an error code if no test files were found]' \ +'--clean[Empty the temporary coverage profile data directory before running tests. Note\: running multiple \`deno test --clean\` calls in series or parallel for the same coverage directory may cause race conditions.]' \ +'--parallel[Run test modules in parallel. Parallelism defaults to the number of available CPUs or the value of the DENO_JOBS environment variable]' \ +'--no-clear-screen[Do not clear terminal screen when under watch mode]' \ +'--hide-stacktraces[Hide stack traces for errors in failure test results.]' \ +'*::files -- List of file names to run:_files' \ +&& ret=0 +;; +(types) +_arguments "${_arguments_options[@]}" : \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'--unstable[Enable all unstable features and APIs. Instead of using this flag, consider enabling individual unstable features To view the list of individual unstable feature flags, run this command again with --help=unstable]' \ +'--unstable-bare-node-builtins[Enable unstable bare node builtins feature]' \ +'--unstable-detect-cjs[Reads the package.json type field in a project to treat .js files as .cjs]' \ +'--unstable-byonm[]' \ +'--unstable-sloppy-imports[Enable unstable resolving of specifiers by extension probing, .js to .ts, and directory probing]' \ +'--unstable-broadcast-channel[Enable unstable \`BroadcastChannel\` API]' \ +'--unstable-cron[Enable unstable Deno.cron API]' \ +'--unstable-ffi[Enable unstable FFI APIs]' \ +'--unstable-fs[Enable unstable file system APIs]' \ +'--unstable-http[Enable unstable HTTP APIs]' \ +'--unstable-kv[Enable unstable Key-Value store APIs]' \ +'--unstable-net[Enable unstable net APIs]' \ +'--unstable-process[Enable unstable process APIs]' \ +'--unstable-temporal[Enable unstable Temporal API]' \ +'--unstable-unsafe-proto[Enable unsafe __proto__ support. This is a security risk.]' \ +'--unstable-webgpu[Enable unstable \`WebGPU\` APIs]' \ +'--unstable-worker-options[Enable unstable Web Worker APIs]' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +&& ret=0 +;; +(upgrade) +_arguments "${_arguments_options[@]}" : \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'--version=[The version to upgrade to]: : ' \ +'--output=[The path to output the updated version to]: :_files' \ +'--cert=[Load certificate authority from PEM encoded file]:FILE:_files' \ +'--unsafely-ignore-certificate-errors=[DANGER\: Disables verification of TLS certificates]' \ +'--unstable[Enable all unstable features and APIs. Instead of using this flag, consider enabling individual unstable features To view the list of individual unstable feature flags, run this command again with --help=unstable]' \ +'--unstable-bare-node-builtins[Enable unstable bare node builtins feature]' \ +'--unstable-detect-cjs[Reads the package.json type field in a project to treat .js files as .cjs]' \ +'--unstable-byonm[]' \ +'--unstable-sloppy-imports[Enable unstable resolving of specifiers by extension probing, .js to .ts, and directory probing]' \ +'--unstable-broadcast-channel[Enable unstable \`BroadcastChannel\` API]' \ +'--unstable-cron[Enable unstable Deno.cron API]' \ +'--unstable-ffi[Enable unstable FFI APIs]' \ +'--unstable-fs[Enable unstable file system APIs]' \ +'--unstable-http[Enable unstable HTTP APIs]' \ +'--unstable-kv[Enable unstable Key-Value store APIs]' \ +'--unstable-net[Enable unstable net APIs]' \ +'--unstable-process[Enable unstable process APIs]' \ +'--unstable-temporal[Enable unstable Temporal API]' \ +'--unstable-unsafe-proto[Enable unsafe __proto__ support. This is a security risk.]' \ +'--unstable-webgpu[Enable unstable \`WebGPU\` APIs]' \ +'--unstable-worker-options[Enable unstable Web Worker APIs]' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +'--dry-run[Perform all checks without replacing old exe]' \ +'-f[Replace current exe even if not out-of-date]' \ +'--force[Replace current exe even if not out-of-date]' \ +'--canary[Upgrade to canary builds]' \ +'(--canary --version)--rc[Upgrade to a release candidate]' \ +'::version-or-hash-or-channel -- Version (v1.46.0), channel (rc, canary) or commit hash (9bc2dd29ad6ba334fd57a20114e367d3c04763d4):' \ +&& ret=0 +;; +(vendor) +_arguments "${_arguments_options[@]}" : \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'--unstable[Enable all unstable features and APIs. Instead of using this flag, consider enabling individual unstable features To view the list of individual unstable feature flags, run this command again with --help=unstable]' \ +'--unstable-bare-node-builtins[Enable unstable bare node builtins feature]' \ +'--unstable-detect-cjs[Reads the package.json type field in a project to treat .js files as .cjs]' \ +'--unstable-byonm[]' \ +'--unstable-sloppy-imports[Enable unstable resolving of specifiers by extension probing, .js to .ts, and directory probing]' \ +'--unstable-broadcast-channel[Enable unstable \`BroadcastChannel\` API]' \ +'--unstable-cron[Enable unstable Deno.cron API]' \ +'--unstable-ffi[Enable unstable FFI APIs]' \ +'--unstable-fs[Enable unstable file system APIs]' \ +'--unstable-http[Enable unstable HTTP APIs]' \ +'--unstable-kv[Enable unstable Key-Value store APIs]' \ +'--unstable-net[Enable unstable net APIs]' \ +'--unstable-process[Enable unstable process APIs]' \ +'--unstable-temporal[Enable unstable Temporal API]' \ +'--unstable-unsafe-proto[Enable unsafe __proto__ support. This is a security risk.]' \ +'--unstable-webgpu[Enable unstable \`WebGPU\` APIs]' \ +'--unstable-worker-options[Enable unstable Web Worker APIs]' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +&& ret=0 +;; +(help) +_arguments "${_arguments_options[@]}" : \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'--unstable[Enable all unstable features and APIs. Instead of using this flag, consider enabling individual unstable features To view the list of individual unstable feature flags, run this command again with --help=unstable]' \ +'--unstable-bare-node-builtins[Enable unstable bare node builtins feature]' \ +'--unstable-detect-cjs[Reads the package.json type field in a project to treat .js files as .cjs]' \ +'--unstable-byonm[]' \ +'--unstable-sloppy-imports[Enable unstable resolving of specifiers by extension probing, .js to .ts, and directory probing]' \ +'--unstable-broadcast-channel[Enable unstable \`BroadcastChannel\` API]' \ +'--unstable-cron[Enable unstable Deno.cron API]' \ +'--unstable-ffi[Enable unstable FFI APIs]' \ +'--unstable-fs[Enable unstable file system APIs]' \ +'--unstable-http[Enable unstable HTTP APIs]' \ +'--unstable-kv[Enable unstable Key-Value store APIs]' \ +'--unstable-net[Enable unstable net APIs]' \ +'--unstable-process[Enable unstable process APIs]' \ +'--unstable-temporal[Enable unstable Temporal API]' \ +'--unstable-unsafe-proto[Enable unsafe __proto__ support. This is a security risk.]' \ +'--unstable-webgpu[Enable unstable \`WebGPU\` APIs]' \ +'--unstable-worker-options[Enable unstable Web Worker APIs]' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +":: :_deno__help_commands" \ +"*::: :->help" \ +&& ret=0 + + case $state in + (help) + words=($line[1] "${words[@]}") + (( CURRENT += 1 )) + curcontext="${curcontext%:*:*}:deno-help-command-$line[1]:" + case $line[1] in + (run) +_arguments "${_arguments_options[@]}" : \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +&& ret=0 +;; +(serve) +_arguments "${_arguments_options[@]}" : \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +&& ret=0 +;; +(add) +_arguments "${_arguments_options[@]}" : \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +&& ret=0 +;; +(remove) +_arguments "${_arguments_options[@]}" : \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +&& ret=0 +;; +(bench) +_arguments "${_arguments_options[@]}" : \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +&& ret=0 +;; +(bundle) +_arguments "${_arguments_options[@]}" : \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +&& ret=0 +;; +(cache) +_arguments "${_arguments_options[@]}" : \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +&& ret=0 +;; +(check) +_arguments "${_arguments_options[@]}" : \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +&& ret=0 +;; +(clean) +_arguments "${_arguments_options[@]}" : \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +&& ret=0 +;; +(compile) +_arguments "${_arguments_options[@]}" : \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +&& ret=0 +;; +(completions) +_arguments "${_arguments_options[@]}" : \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +&& ret=0 +;; +(coverage) +_arguments "${_arguments_options[@]}" : \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +&& ret=0 +;; +(doc) +_arguments "${_arguments_options[@]}" : \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +&& ret=0 +;; +(eval) +_arguments "${_arguments_options[@]}" : \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +&& ret=0 +;; +(fmt) +_arguments "${_arguments_options[@]}" : \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +&& ret=0 +;; +(init) +_arguments "${_arguments_options[@]}" : \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +&& ret=0 +;; +(info) +_arguments "${_arguments_options[@]}" : \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +&& ret=0 +;; +(install) +_arguments "${_arguments_options[@]}" : \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +&& ret=0 +;; +(json_reference) +_arguments "${_arguments_options[@]}" : \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +&& ret=0 +;; +(jupyter) +_arguments "${_arguments_options[@]}" : \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +&& ret=0 +;; +(uninstall) +_arguments "${_arguments_options[@]}" : \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +&& ret=0 +;; +(lsp) +_arguments "${_arguments_options[@]}" : \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +&& ret=0 +;; +(lint) +_arguments "${_arguments_options[@]}" : \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +&& ret=0 +;; +(publish) +_arguments "${_arguments_options[@]}" : \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +&& ret=0 +;; +(repl) +_arguments "${_arguments_options[@]}" : \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +&& ret=0 +;; +(task) +_arguments "${_arguments_options[@]}" : \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +&& ret=0 +;; +(test) +_arguments "${_arguments_options[@]}" : \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +&& ret=0 +;; +(types) +_arguments "${_arguments_options[@]}" : \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +&& ret=0 +;; +(upgrade) +_arguments "${_arguments_options[@]}" : \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +&& ret=0 +;; +(vendor) +_arguments "${_arguments_options[@]}" : \ +'*-h+[]' \ +'*--help=[]' \ +'-L+[Set log level]: :(trace debug info)' \ +'--log-level=[Set log level]: :(trace debug info)' \ +'-q[Suppress diagnostic output]' \ +'--quiet[Suppress diagnostic output]' \ +&& ret=0 +;; + esac + ;; +esac +;; + esac + ;; +esac +} + +(( $+functions[_deno_commands] )) || +_deno_commands() { + local commands; commands=( +'run:Run a JavaScript or TypeScript program, or a task or script. By default all programs are run in sandbox without access to disk, network or ability to spawn subprocesses. deno run https\://examples.deno.land/hello-world.ts Grant permission to read from disk and listen to network\: deno run --allow-read --allow-net jsr\:@std/http/file-server Grant permission to read allow-listed files from disk\: deno run --allow-read=/etc jsr\:@std/http/file-server Grant all permissions\: deno run -A jsr\:@std/http/file-server Specifying the filename '\''-'\'' to read the file from stdin. curl https\://examples.deno.land/hello-world.ts | deno run - Read more\: https\://docs.deno.com/go/run' \ +'serve:Run a server defined in a main module The serve command uses the default exports of the main module to determine which servers to start. Start a server defined in server.ts\: deno serve server.ts Start a server defined in server.ts, watching for changes and running on port 5050\: deno serve --watch --port 5050 server.ts Read more\: https\://docs.deno.com/go/serve' \ +'add:Add dependencies to your configuration file. deno add jsr\:@std/path You can add multiple dependencies at once\: deno add jsr\:@std/path jsr\:@std/assert' \ +'remove:Remove dependencies from the configuration file. deno remove @std/path You can remove multiple dependencies at once\: deno remove @std/path @std/assert ' \ +'bench:Run benchmarks using Deno'\''s built-in bench tool. Evaluate the given files, run all benches declared with '\''Deno.bench()'\'' and report results to standard output\: deno bench src/fetch_bench.ts src/signal_bench.ts If you specify a directory instead of a file, the path is expanded to all contained files matching the glob {*_,*.,}bench.{js,mjs,ts,mts,jsx,tsx}\: deno bench src/ Read more\: https\://docs.deno.com/go/bench' \ +'bundle:⚠️ \`deno bundle\` was removed in Deno 2. See the Deno 1.x to 2.x Migration Guide for migration instructions\: https\://docs.deno.com/runtime/manual/advanced/migrate_deprecations' \ +'cache:Cache and compile remote dependencies. Download and compile a module with all of its static dependencies and save them in the local cache, without running any code\: deno cache jsr\:@std/http/file-server Future runs of this module will trigger no downloads or compilation unless --reload is specified Read more\: https\://docs.deno.com/go/cache' \ +'check:Download and type-check without execution. deno check jsr\:@std/http/file-server Unless --reload is specified, this command will not re-download already cached dependencies Read more\: https\://docs.deno.com/go/check' \ +'clean:Remove the cache directory (\$DENO_DIR)' \ +'compile:Compiles the given script into a self contained executable. deno compile --allow-read --allow-net jsr\:@std/http/file-server deno compile --output file_server jsr\:@std/http/file-server Any flags specified which affect runtime behavior will be applied to the resulting binary. This allows distribution of a Deno application to systems that do not have Deno installed. Under the hood, it bundles a slimmed down version of the Deno runtime along with your JavaScript or TypeScript code. Cross-compiling to different target architectures is supported using the --target flag. On the first invocation with deno will download the proper binary and cache it in \$DENO_DIR. Read more\: https\://docs.deno.com/go/compile ' \ +'completions:Output shell completion script to standard output. deno completions bash > /usr/local/etc/bash_completion.d/deno.bash source /usr/local/etc/bash_completion.d/deno.bash' \ +'coverage:Print coverage reports from coverage profiles. Collect a coverage profile with deno test\: deno test --coverage=cov_profile Print a report to stdout\: deno coverage cov_profile Include urls that start with the file schema and exclude files ending with test.ts and test.js, for an url to match it must match the include pattern and not match the exclude pattern\: deno coverage --include="^file\:" --exclude="test\\.(ts|js)" cov_profile Write a report using the lcov format\: deno coverage --lcov --output=cov.lcov cov_profile/ Generate html reports from lcov\: genhtml -o html_cov cov.lcov Read more\: https\://docs.deno.com/go/coverage' \ +'doc:Show documentation for a module. Output documentation to standard output\: deno doc ./path/to/module.ts Output documentation in HTML format\: deno doc --html --name="My library" ./path/to/module.ts Lint a module for documentation diagnostics\: deno doc --lint ./path/to/module.ts Target a specific symbol\: deno doc ./path/to/module.ts MyClass.someField Show documentation for runtime built-ins\: deno doc deno doc --filter Deno.Listener Read more\: https\://docs.deno.com/go/doc' \ +'eval:Evaluate JavaScript from the command line. deno eval "console.log('\''hello world'\'')" To evaluate as TypeScript\: deno eval --ext=ts "const v\: string = '\''hello'\''; console.log(v)" This command has implicit access to all permissions. Read more\: https\://docs.deno.com/go/eval' \ +'fmt:Auto-format various file types. deno fmt myfile1.ts myfile2.ts Supported file types are\: JavaScript, TypeScript, Markdown, JSON(C) and Jupyter Notebooks Supported file types which are behind corresponding unstable flags (see formatting options)\: HTML, CSS, SCSS, SASS, LESS, YAML, Svelte, Vue, Astro and Angular Format stdin and write to stdout\: cat file.ts | deno fmt - Check if the files are formatted\: deno fmt --check Ignore formatting code by preceding it with an ignore comment\: // deno-fmt-ignore Ignore formatting a file by adding an ignore comment at the top of the file\: // deno-fmt-ignore-file Read more\: https\://docs.deno.com/go/fmt' \ +'init:scaffolds a basic Deno project with a script, test, and configuration file' \ +'info:Show information about a module or the cache directories. Get information about a module\: deno info jsr\:@std/http/file-server The following information is shown\: local\: Local path of the file type\: JavaScript, TypeScript, or JSON emit\: Local path of compiled source code (TypeScript only) dependencies\: Dependency tree of the source file Read more\: https\://docs.deno.com/go/info' \ +'install:Installs dependencies either in the local project or globally to a bin directory. Local installation Add dependencies to the local project'\''s configuration (deno.json / package.json) and installs them in the package cache. If no dependency is specified, installs all dependencies listed in the config file. If the --entrypoint flag is passed, installs the dependencies of the specified entrypoint(s). deno install deno install jsr\:@std/bytes deno install npm\:chalk deno install --entrypoint entry1.ts entry2.ts Global installation If the --global flag is set, installs a script as an executable in the installation root'\''s bin directory. deno install --global --allow-net --allow-read jsr\:@std/http/file-server deno install -g https\://examples.deno.land/color-logging.ts To change the executable name, use -n/--name\: deno install -g --allow-net --allow-read -n serve jsr\:@std/http/file-server The executable name is inferred by default\: - Attempt to take the file stem of the URL path. The above example would become file_server. - If the file stem is something generic like main, mod, index or cli, and the path has no parent, take the file name of the parent path. Otherwise settle with the generic name. - If the resulting name has an @... suffix, strip it. To change the installation root, use --root\: deno install -g --allow-net --allow-read --root /usr/local jsr\:@std/http/file-server The installation root is determined, in order of precedence\: - --root option - DENO_INSTALL_ROOT environment variable - \$HOME/.deno These must be added to the path manually if required.' \ +'i:Installs dependencies either in the local project or globally to a bin directory. Local installation Add dependencies to the local project'\''s configuration (deno.json / package.json) and installs them in the package cache. If no dependency is specified, installs all dependencies listed in the config file. If the --entrypoint flag is passed, installs the dependencies of the specified entrypoint(s). deno install deno install jsr\:@std/bytes deno install npm\:chalk deno install --entrypoint entry1.ts entry2.ts Global installation If the --global flag is set, installs a script as an executable in the installation root'\''s bin directory. deno install --global --allow-net --allow-read jsr\:@std/http/file-server deno install -g https\://examples.deno.land/color-logging.ts To change the executable name, use -n/--name\: deno install -g --allow-net --allow-read -n serve jsr\:@std/http/file-server The executable name is inferred by default\: - Attempt to take the file stem of the URL path. The above example would become file_server. - If the file stem is something generic like main, mod, index or cli, and the path has no parent, take the file name of the parent path. Otherwise settle with the generic name. - If the resulting name has an @... suffix, strip it. To change the installation root, use --root\: deno install -g --allow-net --allow-read --root /usr/local jsr\:@std/http/file-server The installation root is determined, in order of precedence\: - --root option - DENO_INSTALL_ROOT environment variable - \$HOME/.deno These must be added to the path manually if required.' \ +'json_reference:' \ +'jupyter:Deno kernel for Jupyter notebooks' \ +'uninstall:Uninstalls a dependency or an executable script in the installation root'\''s bin directory. deno uninstall @std/dotenv chalk deno uninstall --global file_server To change the installation root, use --root flag\: deno uninstall --global --root /usr/local serve The installation root is determined, in order of precedence\: - --root option - DENO_INSTALL_ROOT environment variable - \$HOME/.deno' \ +'lsp:The '\''deno lsp'\'' subcommand provides a way for code editors and IDEs to interact with Deno using the Language Server Protocol. Usually humans do not use this subcommand directly. For example, '\''deno lsp'\'' can provide IDEs with go-to-definition support and automatic code formatting. How to connect various editors and IDEs to '\''deno lsp'\''\: https\://docs.deno.com/go/lsp' \ +'lint:Lint JavaScript/TypeScript source code. deno lint deno lint myfile1.ts myfile2.js Print result as JSON\: deno lint --json Read from stdin\: cat file.ts | deno lint - cat file.ts | deno lint --json - List available rules\: deno lint --rules To ignore specific diagnostics, you can write an ignore comment on the preceding line with a rule name (or multiple)\: // deno-lint-ignore no-explicit-any // deno-lint-ignore require-await no-empty To ignore linting on an entire file, you can add an ignore comment at the top of the file\: // deno-lint-ignore-file Read more\: https\://docs.deno.com/go/lint ' \ +'publish:Publish the current working directory'\''s package or workspace to JSR' \ +'repl:Starts a read-eval-print-loop, which lets you interactively build up program state in the global context. It is especially useful for quick prototyping and checking snippets of code. TypeScript is supported, however it is not type-checked, only transpiled.' \ +'task:Run a task defined in the configuration file. deno task build List all available tasks\: deno task' \ +'test:Run tests using Deno'\''s built-in test runner. Evaluate the given modules, run all tests declared with Deno.test() and report results to standard output\: deno test src/fetch_test.ts src/signal_test.ts Directory arguments are expanded to all contained files matching the glob {*_,*.,}test.{js,mjs,ts,mts,jsx,tsx} or **/__tests__/**\: deno test src/ Read more\: https\://docs.deno.com/go/test' \ +'types:Print runtime TypeScript declarations. deno types > lib.deno.d.ts The declaration file could be saved and used for typing information.' \ +'upgrade:Upgrade deno executable to the given version. Latest deno upgrade Specific version deno upgrade 1.45.0 deno upgrade 1.46.0-rc.1 deno upgrade 9bc2dd29ad6ba334fd57a20114e367d3c04763d4 Channel deno upgrade stable deno upgrade rc deno upgrade canary The version is downloaded from https\://dl.deno.land and is used to replace the current executable. If you want to not replace the current Deno executable but instead download an update to a different location, use the --output flag\: deno upgrade --output \$HOME/my_deno Read more\: https\://docs.deno.com/go/upgrade' \ +'vendor:⚠️ \`deno vendor\` was removed in Deno 2. See the Deno 1.x to 2.x Migration Guide for migration instructions\: https\://docs.deno.com/runtime/manual/advanced/migrate_deprecations' \ +'help:' \ + ) + _describe -t commands 'deno commands' commands "$@" +} +(( $+functions[_deno__add_commands] )) || +_deno__add_commands() { + local commands; commands=() + _describe -t commands 'deno add commands' commands "$@" +} +(( $+functions[_deno__bench_commands] )) || +_deno__bench_commands() { + local commands; commands=() + _describe -t commands 'deno bench commands' commands "$@" +} +(( $+functions[_deno__bundle_commands] )) || +_deno__bundle_commands() { + local commands; commands=() + _describe -t commands 'deno bundle commands' commands "$@" +} +(( $+functions[_deno__cache_commands] )) || +_deno__cache_commands() { + local commands; commands=() + _describe -t commands 'deno cache commands' commands "$@" +} +(( $+functions[_deno__check_commands] )) || +_deno__check_commands() { + local commands; commands=() + _describe -t commands 'deno check commands' commands "$@" +} +(( $+functions[_deno__clean_commands] )) || +_deno__clean_commands() { + local commands; commands=() + _describe -t commands 'deno clean commands' commands "$@" +} +(( $+functions[_deno__compile_commands] )) || +_deno__compile_commands() { + local commands; commands=() + _describe -t commands 'deno compile commands' commands "$@" +} +(( $+functions[_deno__completions_commands] )) || +_deno__completions_commands() { + local commands; commands=() + _describe -t commands 'deno completions commands' commands "$@" +} +(( $+functions[_deno__coverage_commands] )) || +_deno__coverage_commands() { + local commands; commands=() + _describe -t commands 'deno coverage commands' commands "$@" +} +(( $+functions[_deno__doc_commands] )) || +_deno__doc_commands() { + local commands; commands=() + _describe -t commands 'deno doc commands' commands "$@" +} +(( $+functions[_deno__eval_commands] )) || +_deno__eval_commands() { + local commands; commands=() + _describe -t commands 'deno eval commands' commands "$@" +} +(( $+functions[_deno__fmt_commands] )) || +_deno__fmt_commands() { + local commands; commands=() + _describe -t commands 'deno fmt commands' commands "$@" +} +(( $+functions[_deno__help_commands] )) || +_deno__help_commands() { + local commands; commands=( +'run:' \ +'serve:' \ +'add:' \ +'remove:' \ +'bench:' \ +'bundle:' \ +'cache:' \ +'check:' \ +'clean:' \ +'compile:' \ +'completions:' \ +'coverage:' \ +'doc:' \ +'eval:' \ +'fmt:' \ +'init:' \ +'info:' \ +'install:' \ +'json_reference:' \ +'jupyter:' \ +'uninstall:' \ +'lsp:' \ +'lint:' \ +'publish:' \ +'repl:' \ +'task:' \ +'test:' \ +'types:' \ +'upgrade:' \ +'vendor:' \ + ) + _describe -t commands 'deno help commands' commands "$@" +} +(( $+functions[_deno__help__add_commands] )) || +_deno__help__add_commands() { + local commands; commands=() + _describe -t commands 'deno help add commands' commands "$@" +} +(( $+functions[_deno__help__bench_commands] )) || +_deno__help__bench_commands() { + local commands; commands=() + _describe -t commands 'deno help bench commands' commands "$@" +} +(( $+functions[_deno__help__bundle_commands] )) || +_deno__help__bundle_commands() { + local commands; commands=() + _describe -t commands 'deno help bundle commands' commands "$@" +} +(( $+functions[_deno__help__cache_commands] )) || +_deno__help__cache_commands() { + local commands; commands=() + _describe -t commands 'deno help cache commands' commands "$@" +} +(( $+functions[_deno__help__check_commands] )) || +_deno__help__check_commands() { + local commands; commands=() + _describe -t commands 'deno help check commands' commands "$@" +} +(( $+functions[_deno__help__clean_commands] )) || +_deno__help__clean_commands() { + local commands; commands=() + _describe -t commands 'deno help clean commands' commands "$@" +} +(( $+functions[_deno__help__compile_commands] )) || +_deno__help__compile_commands() { + local commands; commands=() + _describe -t commands 'deno help compile commands' commands "$@" +} +(( $+functions[_deno__help__completions_commands] )) || +_deno__help__completions_commands() { + local commands; commands=() + _describe -t commands 'deno help completions commands' commands "$@" +} +(( $+functions[_deno__help__coverage_commands] )) || +_deno__help__coverage_commands() { + local commands; commands=() + _describe -t commands 'deno help coverage commands' commands "$@" +} +(( $+functions[_deno__help__doc_commands] )) || +_deno__help__doc_commands() { + local commands; commands=() + _describe -t commands 'deno help doc commands' commands "$@" +} +(( $+functions[_deno__help__eval_commands] )) || +_deno__help__eval_commands() { + local commands; commands=() + _describe -t commands 'deno help eval commands' commands "$@" +} +(( $+functions[_deno__help__fmt_commands] )) || +_deno__help__fmt_commands() { + local commands; commands=() + _describe -t commands 'deno help fmt commands' commands "$@" +} +(( $+functions[_deno__help__info_commands] )) || +_deno__help__info_commands() { + local commands; commands=() + _describe -t commands 'deno help info commands' commands "$@" +} +(( $+functions[_deno__help__init_commands] )) || +_deno__help__init_commands() { + local commands; commands=() + _describe -t commands 'deno help init commands' commands "$@" +} +(( $+functions[_deno__help__install_commands] )) || +_deno__help__install_commands() { + local commands; commands=() + _describe -t commands 'deno help install commands' commands "$@" +} +(( $+functions[_deno__help__json_reference_commands] )) || +_deno__help__json_reference_commands() { + local commands; commands=() + _describe -t commands 'deno help json_reference commands' commands "$@" +} +(( $+functions[_deno__help__jupyter_commands] )) || +_deno__help__jupyter_commands() { + local commands; commands=() + _describe -t commands 'deno help jupyter commands' commands "$@" +} +(( $+functions[_deno__help__lint_commands] )) || +_deno__help__lint_commands() { + local commands; commands=() + _describe -t commands 'deno help lint commands' commands "$@" +} +(( $+functions[_deno__help__lsp_commands] )) || +_deno__help__lsp_commands() { + local commands; commands=() + _describe -t commands 'deno help lsp commands' commands "$@" +} +(( $+functions[_deno__help__publish_commands] )) || +_deno__help__publish_commands() { + local commands; commands=() + _describe -t commands 'deno help publish commands' commands "$@" +} +(( $+functions[_deno__help__remove_commands] )) || +_deno__help__remove_commands() { + local commands; commands=() + _describe -t commands 'deno help remove commands' commands "$@" +} +(( $+functions[_deno__help__repl_commands] )) || +_deno__help__repl_commands() { + local commands; commands=() + _describe -t commands 'deno help repl commands' commands "$@" +} +(( $+functions[_deno__help__run_commands] )) || +_deno__help__run_commands() { + local commands; commands=() + _describe -t commands 'deno help run commands' commands "$@" +} +(( $+functions[_deno__help__serve_commands] )) || +_deno__help__serve_commands() { + local commands; commands=() + _describe -t commands 'deno help serve commands' commands "$@" +} +(( $+functions[_deno__help__task_commands] )) || +_deno__help__task_commands() { + local commands; commands=() + _describe -t commands 'deno help task commands' commands "$@" +} +(( $+functions[_deno__help__test_commands] )) || +_deno__help__test_commands() { + local commands; commands=() + _describe -t commands 'deno help test commands' commands "$@" +} +(( $+functions[_deno__help__types_commands] )) || +_deno__help__types_commands() { + local commands; commands=() + _describe -t commands 'deno help types commands' commands "$@" +} +(( $+functions[_deno__help__uninstall_commands] )) || +_deno__help__uninstall_commands() { + local commands; commands=() + _describe -t commands 'deno help uninstall commands' commands "$@" +} +(( $+functions[_deno__help__upgrade_commands] )) || +_deno__help__upgrade_commands() { + local commands; commands=() + _describe -t commands 'deno help upgrade commands' commands "$@" +} +(( $+functions[_deno__help__vendor_commands] )) || +_deno__help__vendor_commands() { + local commands; commands=() + _describe -t commands 'deno help vendor commands' commands "$@" +} +(( $+functions[_deno__info_commands] )) || +_deno__info_commands() { + local commands; commands=() + _describe -t commands 'deno info commands' commands "$@" +} +(( $+functions[_deno__init_commands] )) || +_deno__init_commands() { + local commands; commands=() + _describe -t commands 'deno init commands' commands "$@" +} +(( $+functions[_deno__install_commands] )) || +_deno__install_commands() { + local commands; commands=() + _describe -t commands 'deno install commands' commands "$@" +} +(( $+functions[_deno__json_reference_commands] )) || +_deno__json_reference_commands() { + local commands; commands=() + _describe -t commands 'deno json_reference commands' commands "$@" +} +(( $+functions[_deno__jupyter_commands] )) || +_deno__jupyter_commands() { + local commands; commands=() + _describe -t commands 'deno jupyter commands' commands "$@" +} +(( $+functions[_deno__lint_commands] )) || +_deno__lint_commands() { + local commands; commands=() + _describe -t commands 'deno lint commands' commands "$@" +} +(( $+functions[_deno__lsp_commands] )) || +_deno__lsp_commands() { + local commands; commands=() + _describe -t commands 'deno lsp commands' commands "$@" +} +(( $+functions[_deno__publish_commands] )) || +_deno__publish_commands() { + local commands; commands=() + _describe -t commands 'deno publish commands' commands "$@" +} +(( $+functions[_deno__remove_commands] )) || +_deno__remove_commands() { + local commands; commands=() + _describe -t commands 'deno remove commands' commands "$@" +} +(( $+functions[_deno__repl_commands] )) || +_deno__repl_commands() { + local commands; commands=() + _describe -t commands 'deno repl commands' commands "$@" +} +(( $+functions[_deno__run_commands] )) || +_deno__run_commands() { + local commands; commands=() + _describe -t commands 'deno run commands' commands "$@" +} +(( $+functions[_deno__serve_commands] )) || +_deno__serve_commands() { + local commands; commands=() + _describe -t commands 'deno serve commands' commands "$@" +} +(( $+functions[_deno__task_commands] )) || +_deno__task_commands() { + local commands; commands=() + _describe -t commands 'deno task commands' commands "$@" +} +(( $+functions[_deno__test_commands] )) || +_deno__test_commands() { + local commands; commands=() + _describe -t commands 'deno test commands' commands "$@" +} +(( $+functions[_deno__types_commands] )) || +_deno__types_commands() { + local commands; commands=() + _describe -t commands 'deno types commands' commands "$@" +} +(( $+functions[_deno__uninstall_commands] )) || +_deno__uninstall_commands() { + local commands; commands=() + _describe -t commands 'deno uninstall commands' commands "$@" +} +(( $+functions[_deno__upgrade_commands] )) || +_deno__upgrade_commands() { + local commands; commands=() + _describe -t commands 'deno upgrade commands' commands "$@" +} +(( $+functions[_deno__vendor_commands] )) || +_deno__vendor_commands() { + local commands; commands=() + _describe -t commands 'deno vendor commands' commands "$@" +} + +if [ "$funcstack[1]" = "_deno" ]; then + _deno "$@" +else + compdef _deno deno +fi diff --git a/config/zsh/completions/_fastanime b/config/zsh/completions/_fastanime new file mode 100644 index 00000000..80792aab --- /dev/null +++ b/config/zsh/completions/_fastanime @@ -0,0 +1,40 @@ +#compdef fastanime + +_fastanime_completion() { + local -a completions + local -a completions_with_descriptions + local -a response + (( ! $+commands[fastanime] )) && return 1 + + response=("${(@f)$(env COMP_WORDS="${words[*]}" COMP_CWORD=$((CURRENT-1)) _FASTANIME_COMPLETE=zsh_complete fastanime)}") + + for type key descr in ${response}; do + if [[ "$type" == "plain" ]]; then + if [[ "$descr" == "_" ]]; then + completions+=("$key") + else + completions_with_descriptions+=("$key":"$descr") + fi + elif [[ "$type" == "dir" ]]; then + _path_files -/ + elif [[ "$type" == "file" ]]; then + _path_files -f + fi + done + + if [ -n "$completions_with_descriptions" ]; then + _describe -V unsorted completions_with_descriptions -U + fi + + if [ -n "$completions" ]; then + compadd -U -V unsorted -a completions + fi +} + +if [[ $zsh_eval_context[-1] == loadautofunc ]]; then + # autoload from fpath, call function directly + _fastanime_completion "$@" +else + # eval/source/. command, register function for later + compdef _fastanime_completion fastanime +fi diff --git a/config/zsh/completions/_fzf b/config/zsh/completions/_fzf new file mode 100644 index 00000000..2b0cdb60 --- /dev/null +++ b/config/zsh/completions/_fzf @@ -0,0 +1,638 @@ +### key-bindings.zsh ### +# ____ ____ +# / __/___ / __/ +# / /_/_ / / /_ +# / __/ / /_/ __/ +# /_/ /___/_/ key-bindings.zsh +# +# - $FZF_TMUX_OPTS +# - $FZF_CTRL_T_COMMAND +# - $FZF_CTRL_T_OPTS +# - $FZF_CTRL_R_OPTS +# - $FZF_ALT_C_COMMAND +# - $FZF_ALT_C_OPTS + + +# Key bindings +# ------------ + +# The code at the top and the bottom of this file is the same as in completion.zsh. +# Refer to that file for explanation. +if 'zmodload' 'zsh/parameter' 2>'/dev/null' && (( ${+options} )); then + __fzf_key_bindings_options="options=(${(j: :)${(kv)options[@]}})" +else + () { + __fzf_key_bindings_options="setopt" + 'local' '__fzf_opt' + for __fzf_opt in "${(@)${(@f)$(set -o)}%% *}"; do + if [[ -o "$__fzf_opt" ]]; then + __fzf_key_bindings_options+=" -o $__fzf_opt" + else + __fzf_key_bindings_options+=" +o $__fzf_opt" + fi + done + } +fi + +'builtin' 'emulate' 'zsh' && 'builtin' 'setopt' 'no_aliases' + +{ +if [[ -o interactive ]]; then + +#----BEGIN INCLUDE common.sh +# NOTE: Do not directly edit this section, which is copied from "common.sh". +# To modify it, one can edit "common.sh" and run "./update-common.sh" to apply +# the changes. See code comments in "common.sh" for the implementation details. + +__fzf_defaults() { + printf '%s\n' "--height ${FZF_TMUX_HEIGHT:-40%} --min-height 20+ --bind=ctrl-z:ignore $1" + command cat "${FZF_DEFAULT_OPTS_FILE-}" 2> /dev/null + printf '%s\n' "${FZF_DEFAULT_OPTS-} $2" +} + +__fzf_exec_awk() { + if [[ -z ${__fzf_awk-} ]]; then + __fzf_awk=awk + if [[ $OSTYPE == solaris* && -x /usr/xpg4/bin/awk ]]; then + __fzf_awk=/usr/xpg4/bin/awk + elif command -v mawk >/dev/null 2>&1; then + local n x y z d + IFS=' .' read -r n x y z d <<< $(command mawk -W version 2> /dev/null) + [[ $n == mawk ]] && (( d >= 20230302 && (x * 1000 + y) * 1000 + z >= 1003004 )) && __fzf_awk=mawk + fi + fi + LC_ALL=C exec "$__fzf_awk" "$@" +} +#----END INCLUDE + +# CTRL-T - Paste the selected file path(s) into the command line +__fzf_select() { + setopt localoptions pipefail no_aliases 2> /dev/null + local item + FZF_DEFAULT_COMMAND=${FZF_CTRL_T_COMMAND:-} \ + FZF_DEFAULT_OPTS=$(__fzf_defaults "--reverse --walker=file,dir,follow,hidden --scheme=path" "${FZF_CTRL_T_OPTS-} -m") \ + FZF_DEFAULT_OPTS_FILE='' $(__fzfcmd) "$@" < /dev/tty | while read -r item; do + echo -n -E "${(q)item} " + done + local ret=$? + echo + return $ret +} + +__fzfcmd() { + [ -n "${TMUX_PANE-}" ] && { [ "${FZF_TMUX:-0}" != 0 ] || [ -n "${FZF_TMUX_OPTS-}" ]; } && + echo "fzf-tmux ${FZF_TMUX_OPTS:--d${FZF_TMUX_HEIGHT:-40%}} -- " || echo "fzf" +} + +fzf-file-widget() { + LBUFFER="${LBUFFER}$(__fzf_select)" + local ret=$? + zle reset-prompt + return $ret +} +if [[ "${FZF_CTRL_T_COMMAND-x}" != "" ]]; then + zle -N fzf-file-widget + bindkey -M emacs '^T' fzf-file-widget + bindkey -M vicmd '^T' fzf-file-widget + bindkey -M viins '^T' fzf-file-widget +fi + +# ALT-C - cd into the selected directory +fzf-cd-widget() { + setopt localoptions pipefail no_aliases 2> /dev/null + local dir="$( + FZF_DEFAULT_COMMAND=${FZF_ALT_C_COMMAND:-} \ + FZF_DEFAULT_OPTS=$(__fzf_defaults "--reverse --walker=dir,follow,hidden --scheme=path" "${FZF_ALT_C_OPTS-} +m") \ + FZF_DEFAULT_OPTS_FILE='' $(__fzfcmd) < /dev/tty)" + if [[ -z "$dir" ]]; then + zle redisplay + return 0 + fi + zle push-line # Clear buffer. Auto-restored on next prompt. + BUFFER="builtin cd -- ${(q)dir:a}" + zle accept-line + local ret=$? + unset dir # ensure this doesn't end up appearing in prompt expansion + zle reset-prompt + return $ret +} +if [[ "${FZF_ALT_C_COMMAND-x}" != "" ]]; then + zle -N fzf-cd-widget + bindkey -M emacs '\ec' fzf-cd-widget + bindkey -M vicmd '\ec' fzf-cd-widget + bindkey -M viins '\ec' fzf-cd-widget +fi + +# CTRL-R - Paste the selected command from history into the command line +fzf-history-widget() { + local selected + setopt localoptions noglobsubst noposixbuiltins pipefail no_aliases noglob nobash_rematch 2> /dev/null + # Ensure the module is loaded if not already, and the required features, such + # as the associative 'history' array, which maps event numbers to full history + # lines, are set. Also, make sure Perl is installed for multi-line output. + if zmodload -F zsh/parameter p:{commands,history} 2>/dev/null && (( ${+commands[perl]} )); then + selected="$(printf '%s\t%s\000' "${(kv)history[@]}" | + perl -0 -ne 'if (!$seen{(/^\s*[0-9]+\**\t(.*)/s, $1)}++) { s/\n/\n\t/g; print; }' | + FZF_DEFAULT_OPTS=$(__fzf_defaults "" "-n2..,.. --scheme=history --bind=ctrl-r:toggle-sort --wrap-sign '\t↳ ' --highlight-line ${FZF_CTRL_R_OPTS-} --query=${(qqq)LBUFFER} +m --read0") \ + FZF_DEFAULT_OPTS_FILE='' $(__fzfcmd))" + else + selected="$(fc -rl 1 | __fzf_exec_awk '{ cmd=$0; sub(/^[ \t]*[0-9]+\**[ \t]+/, "", cmd); if (!seen[cmd]++) print $0 }' | + FZF_DEFAULT_OPTS=$(__fzf_defaults "" "-n2..,.. --scheme=history --bind=ctrl-r:toggle-sort --wrap-sign '\t↳ ' --highlight-line ${FZF_CTRL_R_OPTS-} --query=${(qqq)LBUFFER} +m") \ + FZF_DEFAULT_OPTS_FILE='' $(__fzfcmd))" + fi + local ret=$? + if [ -n "$selected" ]; then + if [[ $(__fzf_exec_awk '{print $1; exit}' <<< "$selected") =~ ^[1-9][0-9]* ]]; then + zle vi-fetch-history -n $MATCH + else # selected is a custom query, not from history + LBUFFER="$selected" + fi + fi + zle reset-prompt + return $ret +} +zle -N fzf-history-widget +bindkey -M emacs '^R' fzf-history-widget +bindkey -M vicmd '^R' fzf-history-widget +bindkey -M viins '^R' fzf-history-widget +fi + +} always { + eval $__fzf_key_bindings_options + 'unset' '__fzf_key_bindings_options' +} +### end: key-bindings.zsh ### +### completion.zsh ### +# ____ ____ +# / __/___ / __/ +# / /_/_ / / /_ +# / __/ / /_/ __/ +# /_/ /___/_/ completion.zsh +# +# - $FZF_TMUX (default: 0) +# - $FZF_TMUX_OPTS (default: empty) +# - $FZF_COMPLETION_TRIGGER (default: '**') +# - $FZF_COMPLETION_OPTS (default: empty) +# - $FZF_COMPLETION_PATH_OPTS (default: empty) +# - $FZF_COMPLETION_DIR_OPTS (default: empty) + + +# Both branches of the following `if` do the same thing -- define +# __fzf_completion_options such that `eval $__fzf_completion_options` sets +# all options to the same values they currently have. We'll do just that at +# the bottom of the file after changing options to what we prefer. +# +# IMPORTANT: Until we get to the `emulate` line, all words that *can* be quoted +# *must* be quoted in order to prevent alias expansion. In addition, code must +# be written in a way works with any set of zsh options. This is very tricky, so +# careful when you change it. +# +# Start by loading the builtin zsh/parameter module. It provides `options` +# associative array that stores current shell options. +if 'zmodload' 'zsh/parameter' 2>'/dev/null' && (( ${+options} )); then + # This is the fast branch and it gets taken on virtually all Zsh installations. + # + # ${(kv)options[@]} expands to array of keys (option names) and values ("on" + # or "off"). The subsequent expansion# with (j: :) flag joins all elements + # together separated by spaces. __fzf_completion_options ends up with a value + # like this: "options=(shwordsplit off aliases on ...)". + __fzf_completion_options="options=(${(j: :)${(kv)options[@]}})" +else + # This branch is much slower because it forks to get the names of all + # zsh options. It's possible to eliminate this fork but it's not worth the + # trouble because this branch gets taken only on very ancient or broken + # zsh installations. + () { + # That `()` above defines an anonymous function. This is essentially a scope + # for local parameters. We use it to avoid polluting global scope. + 'local' '__fzf_opt' + __fzf_completion_options="setopt" + # `set -o` prints one line for every zsh option. Each line contains option + # name, some spaces, and then either "on" or "off". We just want option names. + # Expansion with (@f) flag splits a string into lines. The outer expansion + # removes spaces and everything that follow them on every line. __fzf_opt + # ends up iterating over option names: shwordsplit, aliases, etc. + for __fzf_opt in "${(@)${(@f)$(set -o)}%% *}"; do + if [[ -o "$__fzf_opt" ]]; then + # Option $__fzf_opt is currently on, so remember to set it back on. + __fzf_completion_options+=" -o $__fzf_opt" + else + # Option $__fzf_opt is currently off, so remember to set it back off. + __fzf_completion_options+=" +o $__fzf_opt" + fi + done + # The value of __fzf_completion_options here looks like this: + # "setopt +o shwordsplit -o aliases ..." + } +fi + +# Enable the default zsh options (those marked with in `man zshoptions`) +# but without `aliases`. Aliases in functions are expanded when functions are +# defined, so if we disable aliases here, we'll be sure to have no pesky +# aliases in any of our functions. This way we won't need prefix every +# command with `command` or to quote every word to defend against global +# aliases. Note that `aliases` is not the only option that's important to +# control. There are several others that could wreck havoc if they are set +# to values we don't expect. With the following `emulate` command we +# sidestep this issue entirely. +'builtin' 'emulate' 'zsh' && 'builtin' 'setopt' 'no_aliases' + +# This brace is the start of try-always block. The `always` part is like +# `finally` in lesser languages. We use it to *always* restore user options. +{ +# The 'emulate' command should not be placed inside the interactive if check; +# placing it there fails to disable alias expansion. See #3731. +if [[ -o interactive ]]; then + +# To use custom commands instead of find, override _fzf_compgen_{path,dir} +# +# _fzf_compgen_path() { +# echo "$1" +# command find -L "$1" \ +# -name .git -prune -o -name .hg -prune -o -name .svn -prune -o \( -type d -o -type f -o -type l \) \ +# -a -not -path "$1" -print 2> /dev/null | sed 's@^\./@@' +# } +# +# _fzf_compgen_dir() { +# command find -L "$1" \ +# -name .git -prune -o -name .hg -prune -o -name .svn -prune -o -type d \ +# -a -not -path "$1" -print 2> /dev/null | sed 's@^\./@@' +# } + +########################################################### + +#----BEGIN INCLUDE common.sh +# NOTE: Do not directly edit this section, which is copied from "common.sh". +# To modify it, one can edit "common.sh" and run "./update-common.sh" to apply +# the changes. See code comments in "common.sh" for the implementation details. + +__fzf_defaults() { + printf '%s\n' "--height ${FZF_TMUX_HEIGHT:-40%} --min-height 20+ --bind=ctrl-z:ignore $1" + command cat "${FZF_DEFAULT_OPTS_FILE-}" 2> /dev/null + printf '%s\n' "${FZF_DEFAULT_OPTS-} $2" +} + +__fzf_exec_awk() { + if [[ -z ${__fzf_awk-} ]]; then + __fzf_awk=awk + if [[ $OSTYPE == solaris* && -x /usr/xpg4/bin/awk ]]; then + __fzf_awk=/usr/xpg4/bin/awk + elif command -v mawk >/dev/null 2>&1; then + local n x y z d + IFS=' .' read -r n x y z d <<< $(command mawk -W version 2> /dev/null) + [[ $n == mawk ]] && (( d >= 20230302 && (x * 1000 + y) * 1000 + z >= 1003004 )) && __fzf_awk=mawk + fi + fi + LC_ALL=C exec "$__fzf_awk" "$@" +} +#----END INCLUDE + +__fzf_comprun() { + if [[ "$(type _fzf_comprun 2>&1)" =~ function ]]; then + _fzf_comprun "$@" + elif [ -n "${TMUX_PANE-}" ] && { [ "${FZF_TMUX:-0}" != 0 ] || [ -n "${FZF_TMUX_OPTS-}" ]; }; then + shift + if [ -n "${FZF_TMUX_OPTS-}" ]; then + fzf-tmux ${(Q)${(Z+n+)FZF_TMUX_OPTS}} -- "$@" + else + fzf-tmux -d ${FZF_TMUX_HEIGHT:-40%} -- "$@" + fi + else + shift + fzf "$@" + fi +} + +# Extract the name of the command. e.g. ls; foo=1 ssh ** +__fzf_extract_command() { + # Control completion with the "compstate" parameter, insert and list nothing + compstate[insert]= + compstate[list]= + cmd_word="${(Q)words[1]}" +} + +__fzf_generic_path_completion() { + local base lbuf compgen fzf_opts suffix tail dir leftover matches + base=$1 + lbuf=$2 + compgen=$3 + fzf_opts=$4 + suffix=$5 + tail=$6 + + setopt localoptions nonomatch + if [[ $base = *'$('* ]] || [[ $base = *'<('* ]] || [[ $base = *'>('* ]] || [[ $base = *':='* ]] || [[ $base = *'`'* ]]; then + return + fi + eval "base=$base" 2> /dev/null || return + [[ $base = *"/"* ]] && dir="$base" + while [ 1 ]; do + if [[ -z "$dir" || -d ${dir} ]]; then + leftover=${base/#"$dir"} + leftover=${leftover/#\/} + [ -z "$dir" ] && dir='.' + [ "$dir" != "/" ] && dir="${dir/%\//}" + matches=$( + export FZF_DEFAULT_OPTS + FZF_DEFAULT_OPTS=$(__fzf_defaults "--reverse --scheme=path" "${FZF_COMPLETION_OPTS-}") + unset FZF_DEFAULT_COMMAND FZF_DEFAULT_OPTS_FILE + if declare -f "$compgen" > /dev/null; then + eval "$compgen $(printf %q "$dir")" | __fzf_comprun "$cmd_word" ${(Q)${(Z+n+)fzf_opts}} -q "$leftover" + else + if [[ $compgen =~ dir ]]; then + walker=dir,follow + rest=${FZF_COMPLETION_DIR_OPTS-} + else + walker=file,dir,follow,hidden + rest=${FZF_COMPLETION_PATH_OPTS-} + fi + __fzf_comprun "$cmd_word" ${(Q)${(Z+n+)fzf_opts}} -q "$leftover" --walker "$walker" --walker-root="$dir" ${(Q)${(Z+n+)rest}} < /dev/tty + fi | while read -r item; do + item="${item%$suffix}$suffix" + echo -n -E "${(q)item} " + done + ) + matches=${matches% } + if [ -n "$matches" ]; then + LBUFFER="$lbuf$matches$tail" + fi + zle reset-prompt + break + fi + dir=$(dirname "$dir") + dir=${dir%/}/ + done +} + +_fzf_path_completion() { + __fzf_generic_path_completion "$1" "$2" _fzf_compgen_path \ + "-m" "" " " +} + +_fzf_dir_completion() { + __fzf_generic_path_completion "$1" "$2" _fzf_compgen_dir \ + "" "/" "" +} + +_fzf_feed_fifo() { + command rm -f "$1" + mkfifo "$1" + cat <&0 > "$1" &| +} + +_fzf_complete() { + setopt localoptions ksh_arrays + # Split arguments around -- + local args rest str_arg i sep + args=("$@") + sep= + for i in {0..${#args[@]}}; do + if [[ "${args[$i]-}" = -- ]]; then + sep=$i + break + fi + done + if [[ -n "$sep" ]]; then + str_arg= + rest=("${args[@]:$((sep + 1)):${#args[@]}}") + args=("${args[@]:0:$sep}") + else + str_arg=$1 + args=() + shift + rest=("$@") + fi + + local fifo lbuf matches post + fifo="${TMPDIR:-/tmp}/fzf-complete-fifo-$$" + lbuf=${rest[0]} + post="${funcstack[1]}_post" + type $post > /dev/null 2>&1 || post=cat + + _fzf_feed_fifo "$fifo" + matches=$( + FZF_DEFAULT_OPTS=$(__fzf_defaults "--reverse" "${FZF_COMPLETION_OPTS-} $str_arg") \ + FZF_DEFAULT_OPTS_FILE='' \ + __fzf_comprun "$cmd_word" "${args[@]}" -q "${(Q)prefix}" < "$fifo" | $post | tr '\n' ' ') + if [ -n "$matches" ]; then + LBUFFER="$lbuf$matches" + fi + command rm -f "$fifo" +} + +# To use custom hostname lists, override __fzf_list_hosts. +# The function is expected to print hostnames, one per line as well as in the +# desired sorting and with any duplicates removed, to standard output. +if ! declare -f __fzf_list_hosts > /dev/null; then + __fzf_list_hosts() { + command sort -u \ + <( + # Note: To make the pathname expansion of "~/.ssh/config.d/*" work + # properly, we need to adjust the related shell options. We need to + # unset "NO_GLOB" (or reset "GLOB"), which disable the pathname + # expansion totally. We need to unset "DOT_GLOB" and set "CASE_GLOB" + # to avoid matching unwanted files. We need to set "NULL_GLOB" to + # avoid attempting to read the literal filename '~/.ssh/config.d/*' + # when no matching is found. + setopt GLOB NO_DOT_GLOB CASE_GLOB NO_NOMATCH NULL_GLOB + + __fzf_exec_awk ' + # Note: mawk <= 1.3.3-20090705 does not support the POSIX brackets of + # the form [[:blank:]], and Ubuntu 18.04 LTS still uses this + # 16-year-old mawk unfortunately. We need to use [ \t] instead. + match(tolower($0), /^[ \t]*host(name)?[ \t]*[ \t=]/) { + $0 = substr($0, RLENGTH + 1) # Remove "Host(name)?=?" + sub(/#.*/, "") + for (i = 1; i <= NF; i++) + if ($i !~ /[*?%]/) + print $i + } + ' ~/.ssh/config ~/.ssh/config.d/* /etc/ssh/ssh_config 2> /dev/null + ) \ + <( + __fzf_exec_awk -F ',' ' + match($0, /^[][a-zA-Z0-9.,:-]+/) { + $0 = substr($0, 1, RLENGTH) + gsub(/[][]|:[^,]*/, "") + for (i = 1; i <= NF; i++) + print $i + } + ' ~/.ssh/known_hosts 2> /dev/null + ) \ + <( + __fzf_exec_awk ' + { + sub(/#.*/, "") + for (i = 2; i <= NF; i++) + if ($i != "0.0.0.0") + print $i + } + ' /etc/hosts 2> /dev/null + ) + } +fi + +_fzf_complete_telnet() { + _fzf_complete +m -- "$@" < <(__fzf_list_hosts) +} + +# The first and the only argument is the LBUFFER without the current word that contains the trigger. +# The current word without the trigger is in the $prefix variable passed from the caller. +_fzf_complete_ssh() { + local -a tokens + tokens=(${(z)1}) + case ${tokens[-1]} in + -i|-F|-E) + _fzf_path_completion "$prefix" "$1" + ;; + *) + local user + [[ $prefix =~ @ ]] && user="${prefix%%@*}@" + _fzf_complete +m -- "$@" < <(__fzf_list_hosts | __fzf_exec_awk -v user="$user" '{print user $0}') + ;; + esac +} + +_fzf_complete_export() { + _fzf_complete -m -- "$@" < <( + declare -xp | sed 's/=.*//' | sed 's/.* //' + ) +} + +_fzf_complete_unset() { + _fzf_complete -m -- "$@" < <( + declare -xp | sed 's/=.*//' | sed 's/.* //' + ) +} + +_fzf_complete_unalias() { + _fzf_complete +m -- "$@" < <( + alias | sed 's/=.*//' + ) +} + +_fzf_complete_kill() { + local transformer + transformer=' + if [[ $FZF_KEY =~ ctrl|alt|shift ]] && [[ -n $FZF_NTH ]]; then + nths=( ${FZF_NTH//,/ } ) + new_nths=() + found=0 + for nth in ${nths[@]}; do + if [[ $nth = $FZF_CLICK_HEADER_NTH ]]; then + found=1 + else + new_nths+=($nth) + fi + done + [[ $found = 0 ]] && new_nths+=($FZF_CLICK_HEADER_NTH) + new_nths=${new_nths[*]} + new_nths=${new_nths// /,} + echo "change-nth($new_nths)+change-prompt($new_nths> )" + else + if [[ $FZF_NTH = $FZF_CLICK_HEADER_NTH ]]; then + echo "change-nth()+change-prompt(> )" + else + echo "change-nth($FZF_CLICK_HEADER_NTH)+change-prompt($FZF_CLICK_HEADER_WORD> )" + fi + fi + ' + _fzf_complete -m --header-lines=1 --no-preview --wrap --color fg:dim,nth:regular \ + --bind "click-header:transform:$transformer" -- "$@" < <( + command ps -eo user,pid,ppid,start,time,command 2> /dev/null || + command ps -eo user,pid,ppid,time,args 2> /dev/null || # For BusyBox + command ps --everyone --full --windows # For cygwin + ) +} + +_fzf_complete_kill_post() { + __fzf_exec_awk '{print $2}' +} + +fzf-completion() { + local tokens prefix trigger tail matches lbuf d_cmds cursor_pos cmd_word + setopt localoptions noshwordsplit noksh_arrays noposixbuiltins + + # http://zsh.sourceforge.net/FAQ/zshfaq03.html + # http://zsh.sourceforge.net/Doc/Release/Expansion.html#Parameter-Expansion-Flags + tokens=(${(z)LBUFFER}) + if [ ${#tokens} -lt 1 ]; then + zle ${fzf_default_completion:-expand-or-complete} + return + fi + + # Explicitly allow for empty trigger. + trigger=${FZF_COMPLETION_TRIGGER-'**'} + [[ -z $trigger && ${LBUFFER[-1]} == ' ' ]] && tokens+=("") + + # When the trigger starts with ';', it becomes a separate token + if [[ ${LBUFFER} = *"${tokens[-2]-}${tokens[-1]}" ]]; then + tokens[-2]="${tokens[-2]-}${tokens[-1]}" + tokens=(${tokens[0,-2]}) + fi + + lbuf=$LBUFFER + tail=${LBUFFER:$(( ${#LBUFFER} - ${#trigger} ))} + + # Trigger sequence given + if [ ${#tokens} -gt 1 -a "$tail" = "$trigger" ]; then + d_cmds=(${=FZF_COMPLETION_DIR_COMMANDS-cd pushd rmdir}) + + { + cursor_pos=$CURSOR + # Move the cursor before the trigger to preserve word array elements when + # trigger chars like ';' or '`' would otherwise reset the 'words' array. + CURSOR=$((cursor_pos - ${#trigger} - 1)) + # Check if at least one completion system (old or new) is active. + # If at least one user-defined completion widget is detected, nothing will + # be completed if neither the old nor the new completion system is enabled. + # In such cases, the 'zsh/compctl' module is loaded as a fallback. + if ! zmodload -F zsh/parameter p:functions 2>/dev/null || ! (( ${+functions[compdef]} )); then + zmodload -F zsh/compctl 2>/dev/null + fi + # Create a completion widget to access the 'words' array (man zshcompwid) + zle -C __fzf_extract_command .complete-word __fzf_extract_command + zle __fzf_extract_command + } always { + CURSOR=$cursor_pos + # Delete the completion widget + zle -D __fzf_extract_command 2>/dev/null + } + + [ -z "$trigger" ] && prefix=${tokens[-1]} || prefix=${tokens[-1]:0:-${#trigger}} + if [[ $prefix = *'$('* ]] || [[ $prefix = *'<('* ]] || [[ $prefix = *'>('* ]] || [[ $prefix = *':='* ]] || [[ $prefix = *'`'* ]]; then + return + fi + [ -n "${tokens[-1]}" ] && lbuf=${lbuf:0:-${#tokens[-1]}} + + if eval "noglob type _fzf_complete_${cmd_word} >/dev/null"; then + prefix="$prefix" eval _fzf_complete_${cmd_word} ${(q)lbuf} + zle reset-prompt + elif [ ${d_cmds[(i)$cmd_word]} -le ${#d_cmds} ]; then + _fzf_dir_completion "$prefix" "$lbuf" + else + _fzf_path_completion "$prefix" "$lbuf" + fi + # Fall back to default completion + else + zle ${fzf_default_completion:-expand-or-complete} + fi +} + +[ -z "$fzf_default_completion" ] && { + binding=$(bindkey '^I') + [[ $binding =~ 'undefined-key' ]] || fzf_default_completion=$binding[(s: :w)2] + unset binding +} + +# Normal widget +zle -N fzf-completion +bindkey '^I' fzf-completion +fi + +} always { + # Restore the original options. + eval $__fzf_completion_options + 'unset' '__fzf_completion_options' +} +### end: completion.zsh ### diff --git a/config/zsh/completions/_sqlx b/config/zsh/completions/_sqlx new file mode 100644 index 00000000..125ef564 --- /dev/null +++ b/config/zsh/completions/_sqlx @@ -0,0 +1,635 @@ +#compdef sqlx + +autoload -U is-at-least + +_sqlx() { + 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[@]}" : \ +'-h[Print help]' \ +'--help[Print help]' \ +":: :_sqlx_commands" \ +"*::: :->sqlx-cli" \ +&& ret=0 + case $state in + (sqlx-cli) + words=($line[1] "${words[@]}") + (( CURRENT += 1 )) + curcontext="${curcontext%:*:*}:sqlx-command-$line[1]:" + case $line[1] in + (database) +_arguments "${_arguments_options[@]}" : \ +'-h[Print help]' \ +'--help[Print help]' \ +":: :_sqlx__database_commands" \ +"*::: :->database" \ +&& ret=0 + + case $state in + (database) + words=($line[1] "${words[@]}") + (( CURRENT += 1 )) + curcontext="${curcontext%:*:*}:sqlx-database-command-$line[1]:" + case $line[1] in + (create) +_arguments "${_arguments_options[@]}" : \ +'-D+[Location of the DB, by default will be read from the DATABASE_URL env var or \`.env\` files]:DATABASE_URL:_default' \ +'--database-url=[Location of the DB, by default will be read from the DATABASE_URL env var or \`.env\` files]:DATABASE_URL:_default' \ +'--connect-timeout=[The maximum time, in seconds, to try connecting to the database server before returning an error]:CONNECT_TIMEOUT:_default' \ +'--no-dotenv[Do not automatically load \`.env\` files]' \ +'-h[Print help]' \ +'--help[Print help]' \ +&& ret=0 +;; +(drop) +_arguments "${_arguments_options[@]}" : \ +'-D+[Location of the DB, by default will be read from the DATABASE_URL env var or \`.env\` files]:DATABASE_URL:_default' \ +'--database-url=[Location of the DB, by default will be read from the DATABASE_URL env var or \`.env\` files]:DATABASE_URL:_default' \ +'--connect-timeout=[The maximum time, in seconds, to try connecting to the database server before returning an error]:CONNECT_TIMEOUT:_default' \ +'-y[Automatic confirmation. Without this option, you will be prompted before dropping your database]' \ +'--no-dotenv[Do not automatically load \`.env\` files]' \ +'-f[PostgreSQL only\: force drops the database]' \ +'--force[PostgreSQL only\: force drops the database]' \ +'-h[Print help]' \ +'--help[Print help]' \ +&& ret=0 +;; +(reset) +_arguments "${_arguments_options[@]}" : \ +'--source=[Path to folder containing migrations]:SOURCE:_default' \ +'-D+[Location of the DB, by default will be read from the DATABASE_URL env var or \`.env\` files]:DATABASE_URL:_default' \ +'--database-url=[Location of the DB, by default will be read from the DATABASE_URL env var or \`.env\` files]:DATABASE_URL:_default' \ +'--connect-timeout=[The maximum time, in seconds, to try connecting to the database server before returning an error]:CONNECT_TIMEOUT:_default' \ +'-y[Automatic confirmation. Without this option, you will be prompted before dropping your database]' \ +'--no-dotenv[Do not automatically load \`.env\` files]' \ +'-f[PostgreSQL only\: force drops the database]' \ +'--force[PostgreSQL only\: force drops the database]' \ +'-h[Print help]' \ +'--help[Print help]' \ +&& ret=0 +;; +(setup) +_arguments "${_arguments_options[@]}" : \ +'--source=[Path to folder containing migrations]:SOURCE:_default' \ +'-D+[Location of the DB, by default will be read from the DATABASE_URL env var or \`.env\` files]:DATABASE_URL:_default' \ +'--database-url=[Location of the DB, by default will be read from the DATABASE_URL env var or \`.env\` files]:DATABASE_URL:_default' \ +'--connect-timeout=[The maximum time, in seconds, to try connecting to the database server before returning an error]:CONNECT_TIMEOUT:_default' \ +'--no-dotenv[Do not automatically load \`.env\` files]' \ +'-h[Print help]' \ +'--help[Print help]' \ +&& ret=0 +;; +(help) +_arguments "${_arguments_options[@]}" : \ +":: :_sqlx__database__help_commands" \ +"*::: :->help" \ +&& ret=0 + + case $state in + (help) + words=($line[1] "${words[@]}") + (( CURRENT += 1 )) + curcontext="${curcontext%:*:*}:sqlx-database-help-command-$line[1]:" + case $line[1] in + (create) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(drop) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(reset) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(setup) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(help) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; + esac + ;; +esac +;; + esac + ;; +esac +;; +(prepare) +_arguments "${_arguments_options[@]}" : \ +'-D+[Location of the DB, by default will be read from the DATABASE_URL env var or \`.env\` files]:DATABASE_URL:_default' \ +'--database-url=[Location of the DB, by default will be read from the DATABASE_URL env var or \`.env\` files]:DATABASE_URL:_default' \ +'--connect-timeout=[The maximum time, in seconds, to try connecting to the database server before returning an error]:CONNECT_TIMEOUT:_default' \ +'--check[Run in '\''check'\'' mode. Exits with 0 if the query metadata is up-to-date. Exits with 1 if the query metadata needs updating]' \ +'--all[Prepare query macros in dependencies that exist outside the current crate or workspace]' \ +'--workspace[Generate a single workspace-level \`.sqlx\` folder]' \ +'--no-dotenv[Do not automatically load \`.env\` files]' \ +'-h[Print help (see more with '\''--help'\'')]' \ +'--help[Print help (see more with '\''--help'\'')]' \ +'*::args -- Arguments to be passed to `cargo rustc ...`:_default' \ +&& ret=0 +;; +(migrate) +_arguments "${_arguments_options[@]}" : \ +'-h[Print help]' \ +'--help[Print help]' \ +":: :_sqlx__migrate_commands" \ +"*::: :->migrate" \ +&& ret=0 + + case $state in + (migrate) + words=($line[1] "${words[@]}") + (( CURRENT += 1 )) + curcontext="${curcontext%:*:*}:sqlx-migrate-command-$line[1]:" + case $line[1] in + (add) +_arguments "${_arguments_options[@]}" : \ +'--source=[Path to folder containing migrations]:SOURCE:_default' \ +'-r[If true, creates a pair of up and down migration files with same version else creates a single sql file]' \ +'-t[If set, use timestamp versioning for the new migration. Conflicts with \`--sequential\`]' \ +'--timestamp[If set, use timestamp versioning for the new migration. Conflicts with \`--sequential\`]' \ +'(-t --timestamp)-s[If set, use sequential versioning for the new migration. Conflicts with \`--timestamp\`]' \ +'(-t --timestamp)--sequential[If set, use sequential versioning for the new migration. Conflicts with \`--timestamp\`]' \ +'-h[Print help (see more with '\''--help'\'')]' \ +'--help[Print help (see more with '\''--help'\'')]' \ +':description:_default' \ +&& ret=0 +;; +(run) +_arguments "${_arguments_options[@]}" : \ +'--source=[Path to folder containing migrations]:SOURCE:_default' \ +'-D+[Location of the DB, by default will be read from the DATABASE_URL env var or \`.env\` files]:DATABASE_URL:_default' \ +'--database-url=[Location of the DB, by default will be read from the DATABASE_URL env var or \`.env\` files]:DATABASE_URL:_default' \ +'--connect-timeout=[The maximum time, in seconds, to try connecting to the database server before returning an error]:CONNECT_TIMEOUT:_default' \ +'--target-version=[Apply migrations up to the specified version. If unspecified, apply all pending migrations. If already at the target version, then no-op]:TARGET_VERSION:_default' \ +'--dry-run[List all the migrations to be run without applying]' \ +'--ignore-missing[Ignore applied migrations that are missing in the resolved migrations]' \ +'--no-dotenv[Do not automatically load \`.env\` files]' \ +'-h[Print help]' \ +'--help[Print help]' \ +&& ret=0 +;; +(revert) +_arguments "${_arguments_options[@]}" : \ +'--source=[Path to folder containing migrations]:SOURCE:_default' \ +'-D+[Location of the DB, by default will be read from the DATABASE_URL env var or \`.env\` files]:DATABASE_URL:_default' \ +'--database-url=[Location of the DB, by default will be read from the DATABASE_URL env var or \`.env\` files]:DATABASE_URL:_default' \ +'--connect-timeout=[The maximum time, in seconds, to try connecting to the database server before returning an error]:CONNECT_TIMEOUT:_default' \ +'--target-version=[Revert migrations down to the specified version. If unspecified, revert only the last migration. Set to 0 to revert all migrations. If already at the target version, then no-op]:TARGET_VERSION:_default' \ +'--dry-run[List the migration to be reverted without applying]' \ +'--ignore-missing[Ignore applied migrations that are missing in the resolved migrations]' \ +'--no-dotenv[Do not automatically load \`.env\` files]' \ +'-h[Print help]' \ +'--help[Print help]' \ +&& ret=0 +;; +(info) +_arguments "${_arguments_options[@]}" : \ +'--source=[Path to folder containing migrations]:SOURCE:_default' \ +'-D+[Location of the DB, by default will be read from the DATABASE_URL env var or \`.env\` files]:DATABASE_URL:_default' \ +'--database-url=[Location of the DB, by default will be read from the DATABASE_URL env var or \`.env\` files]:DATABASE_URL:_default' \ +'--connect-timeout=[The maximum time, in seconds, to try connecting to the database server before returning an error]:CONNECT_TIMEOUT:_default' \ +'--no-dotenv[Do not automatically load \`.env\` files]' \ +'-h[Print help]' \ +'--help[Print help]' \ +&& ret=0 +;; +(build-script) +_arguments "${_arguments_options[@]}" : \ +'--source=[Path to folder containing migrations]:SOURCE:_default' \ +'--force[Overwrite the build script if it already exists]' \ +'-h[Print help (see more with '\''--help'\'')]' \ +'--help[Print help (see more with '\''--help'\'')]' \ +&& ret=0 +;; +(help) +_arguments "${_arguments_options[@]}" : \ +":: :_sqlx__migrate__help_commands" \ +"*::: :->help" \ +&& ret=0 + + case $state in + (help) + words=($line[1] "${words[@]}") + (( CURRENT += 1 )) + curcontext="${curcontext%:*:*}:sqlx-migrate-help-command-$line[1]:" + case $line[1] in + (add) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(run) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(revert) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(info) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(build-script) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(help) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; + esac + ;; +esac +;; + esac + ;; +esac +;; +(completions) +_arguments "${_arguments_options[@]}" : \ +'-h[Print help]' \ +'--help[Print help]' \ +':shell:(bash elvish fish powershell zsh)' \ +&& ret=0 +;; +(help) +_arguments "${_arguments_options[@]}" : \ +":: :_sqlx__help_commands" \ +"*::: :->help" \ +&& ret=0 + + case $state in + (help) + words=($line[1] "${words[@]}") + (( CURRENT += 1 )) + curcontext="${curcontext%:*:*}:sqlx-help-command-$line[1]:" + case $line[1] in + (database) +_arguments "${_arguments_options[@]}" : \ +":: :_sqlx__help__database_commands" \ +"*::: :->database" \ +&& ret=0 + + case $state in + (database) + words=($line[1] "${words[@]}") + (( CURRENT += 1 )) + curcontext="${curcontext%:*:*}:sqlx-help-database-command-$line[1]:" + case $line[1] in + (create) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(drop) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(reset) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(setup) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; + esac + ;; +esac +;; +(prepare) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(migrate) +_arguments "${_arguments_options[@]}" : \ +":: :_sqlx__help__migrate_commands" \ +"*::: :->migrate" \ +&& ret=0 + + case $state in + (migrate) + words=($line[1] "${words[@]}") + (( CURRENT += 1 )) + curcontext="${curcontext%:*:*}:sqlx-help-migrate-command-$line[1]:" + case $line[1] in + (add) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(run) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(revert) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(info) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(build-script) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; + esac + ;; +esac +;; +(completions) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; +(help) +_arguments "${_arguments_options[@]}" : \ +&& ret=0 +;; + esac + ;; +esac +;; + esac + ;; +esac +} + +(( $+functions[_sqlx_commands] )) || +_sqlx_commands() { + local commands; commands=( +'database:Group of commands for creating and dropping your database' \ +'prepare:Generate query metadata to support offline compile-time verification' \ +'migrate:Group of commands for creating and running migrations' \ +'completions:Generate shell completions for the specified shell' \ +'help:Print this message or the help of the given subcommand(s)' \ + ) + _describe -t commands 'sqlx commands' commands "$@" +} +(( $+functions[_sqlx__completions_commands] )) || +_sqlx__completions_commands() { + local commands; commands=() + _describe -t commands 'sqlx completions commands' commands "$@" +} +(( $+functions[_sqlx__database_commands] )) || +_sqlx__database_commands() { + local commands; commands=( +'create:Creates the database specified in your DATABASE_URL' \ +'drop:Drops the database specified in your DATABASE_URL' \ +'reset:Drops the database specified in your DATABASE_URL, re-creates it, and runs any pending migrations' \ +'setup:Creates the database specified in your DATABASE_URL and runs any pending migrations' \ +'help:Print this message or the help of the given subcommand(s)' \ + ) + _describe -t commands 'sqlx database commands' commands "$@" +} +(( $+functions[_sqlx__database__create_commands] )) || +_sqlx__database__create_commands() { + local commands; commands=() + _describe -t commands 'sqlx database create commands' commands "$@" +} +(( $+functions[_sqlx__database__drop_commands] )) || +_sqlx__database__drop_commands() { + local commands; commands=() + _describe -t commands 'sqlx database drop commands' commands "$@" +} +(( $+functions[_sqlx__database__help_commands] )) || +_sqlx__database__help_commands() { + local commands; commands=( +'create:Creates the database specified in your DATABASE_URL' \ +'drop:Drops the database specified in your DATABASE_URL' \ +'reset:Drops the database specified in your DATABASE_URL, re-creates it, and runs any pending migrations' \ +'setup:Creates the database specified in your DATABASE_URL and runs any pending migrations' \ +'help:Print this message or the help of the given subcommand(s)' \ + ) + _describe -t commands 'sqlx database help commands' commands "$@" +} +(( $+functions[_sqlx__database__help__create_commands] )) || +_sqlx__database__help__create_commands() { + local commands; commands=() + _describe -t commands 'sqlx database help create commands' commands "$@" +} +(( $+functions[_sqlx__database__help__drop_commands] )) || +_sqlx__database__help__drop_commands() { + local commands; commands=() + _describe -t commands 'sqlx database help drop commands' commands "$@" +} +(( $+functions[_sqlx__database__help__help_commands] )) || +_sqlx__database__help__help_commands() { + local commands; commands=() + _describe -t commands 'sqlx database help help commands' commands "$@" +} +(( $+functions[_sqlx__database__help__reset_commands] )) || +_sqlx__database__help__reset_commands() { + local commands; commands=() + _describe -t commands 'sqlx database help reset commands' commands "$@" +} +(( $+functions[_sqlx__database__help__setup_commands] )) || +_sqlx__database__help__setup_commands() { + local commands; commands=() + _describe -t commands 'sqlx database help setup commands' commands "$@" +} +(( $+functions[_sqlx__database__reset_commands] )) || +_sqlx__database__reset_commands() { + local commands; commands=() + _describe -t commands 'sqlx database reset commands' commands "$@" +} +(( $+functions[_sqlx__database__setup_commands] )) || +_sqlx__database__setup_commands() { + local commands; commands=() + _describe -t commands 'sqlx database setup commands' commands "$@" +} +(( $+functions[_sqlx__help_commands] )) || +_sqlx__help_commands() { + local commands; commands=( +'database:Group of commands for creating and dropping your database' \ +'prepare:Generate query metadata to support offline compile-time verification' \ +'migrate:Group of commands for creating and running migrations' \ +'completions:Generate shell completions for the specified shell' \ +'help:Print this message or the help of the given subcommand(s)' \ + ) + _describe -t commands 'sqlx help commands' commands "$@" +} +(( $+functions[_sqlx__help__completions_commands] )) || +_sqlx__help__completions_commands() { + local commands; commands=() + _describe -t commands 'sqlx help completions commands' commands "$@" +} +(( $+functions[_sqlx__help__database_commands] )) || +_sqlx__help__database_commands() { + local commands; commands=( +'create:Creates the database specified in your DATABASE_URL' \ +'drop:Drops the database specified in your DATABASE_URL' \ +'reset:Drops the database specified in your DATABASE_URL, re-creates it, and runs any pending migrations' \ +'setup:Creates the database specified in your DATABASE_URL and runs any pending migrations' \ + ) + _describe -t commands 'sqlx help database commands' commands "$@" +} +(( $+functions[_sqlx__help__database__create_commands] )) || +_sqlx__help__database__create_commands() { + local commands; commands=() + _describe -t commands 'sqlx help database create commands' commands "$@" +} +(( $+functions[_sqlx__help__database__drop_commands] )) || +_sqlx__help__database__drop_commands() { + local commands; commands=() + _describe -t commands 'sqlx help database drop commands' commands "$@" +} +(( $+functions[_sqlx__help__database__reset_commands] )) || +_sqlx__help__database__reset_commands() { + local commands; commands=() + _describe -t commands 'sqlx help database reset commands' commands "$@" +} +(( $+functions[_sqlx__help__database__setup_commands] )) || +_sqlx__help__database__setup_commands() { + local commands; commands=() + _describe -t commands 'sqlx help database setup commands' commands "$@" +} +(( $+functions[_sqlx__help__help_commands] )) || +_sqlx__help__help_commands() { + local commands; commands=() + _describe -t commands 'sqlx help help commands' commands "$@" +} +(( $+functions[_sqlx__help__migrate_commands] )) || +_sqlx__help__migrate_commands() { + local commands; commands=( +'add:Create a new migration with the given description' \ +'run:Run all pending migrations' \ +'revert:Revert the latest migration with a down file' \ +'info:List all available migrations' \ +'build-script:Generate a \`build.rs\` to trigger recompilation when a new migration is added' \ + ) + _describe -t commands 'sqlx help migrate commands' commands "$@" +} +(( $+functions[_sqlx__help__migrate__add_commands] )) || +_sqlx__help__migrate__add_commands() { + local commands; commands=() + _describe -t commands 'sqlx help migrate add commands' commands "$@" +} +(( $+functions[_sqlx__help__migrate__build-script_commands] )) || +_sqlx__help__migrate__build-script_commands() { + local commands; commands=() + _describe -t commands 'sqlx help migrate build-script commands' commands "$@" +} +(( $+functions[_sqlx__help__migrate__info_commands] )) || +_sqlx__help__migrate__info_commands() { + local commands; commands=() + _describe -t commands 'sqlx help migrate info commands' commands "$@" +} +(( $+functions[_sqlx__help__migrate__revert_commands] )) || +_sqlx__help__migrate__revert_commands() { + local commands; commands=() + _describe -t commands 'sqlx help migrate revert commands' commands "$@" +} +(( $+functions[_sqlx__help__migrate__run_commands] )) || +_sqlx__help__migrate__run_commands() { + local commands; commands=() + _describe -t commands 'sqlx help migrate run commands' commands "$@" +} +(( $+functions[_sqlx__help__prepare_commands] )) || +_sqlx__help__prepare_commands() { + local commands; commands=() + _describe -t commands 'sqlx help prepare commands' commands "$@" +} +(( $+functions[_sqlx__migrate_commands] )) || +_sqlx__migrate_commands() { + local commands; commands=( +'add:Create a new migration with the given description' \ +'run:Run all pending migrations' \ +'revert:Revert the latest migration with a down file' \ +'info:List all available migrations' \ +'build-script:Generate a \`build.rs\` to trigger recompilation when a new migration is added' \ +'help:Print this message or the help of the given subcommand(s)' \ + ) + _describe -t commands 'sqlx migrate commands' commands "$@" +} +(( $+functions[_sqlx__migrate__add_commands] )) || +_sqlx__migrate__add_commands() { + local commands; commands=() + _describe -t commands 'sqlx migrate add commands' commands "$@" +} +(( $+functions[_sqlx__migrate__build-script_commands] )) || +_sqlx__migrate__build-script_commands() { + local commands; commands=() + _describe -t commands 'sqlx migrate build-script commands' commands "$@" +} +(( $+functions[_sqlx__migrate__help_commands] )) || +_sqlx__migrate__help_commands() { + local commands; commands=( +'add:Create a new migration with the given description' \ +'run:Run all pending migrations' \ +'revert:Revert the latest migration with a down file' \ +'info:List all available migrations' \ +'build-script:Generate a \`build.rs\` to trigger recompilation when a new migration is added' \ +'help:Print this message or the help of the given subcommand(s)' \ + ) + _describe -t commands 'sqlx migrate help commands' commands "$@" +} +(( $+functions[_sqlx__migrate__help__add_commands] )) || +_sqlx__migrate__help__add_commands() { + local commands; commands=() + _describe -t commands 'sqlx migrate help add commands' commands "$@" +} +(( $+functions[_sqlx__migrate__help__build-script_commands] )) || +_sqlx__migrate__help__build-script_commands() { + local commands; commands=() + _describe -t commands 'sqlx migrate help build-script commands' commands "$@" +} +(( $+functions[_sqlx__migrate__help__help_commands] )) || +_sqlx__migrate__help__help_commands() { + local commands; commands=() + _describe -t commands 'sqlx migrate help help commands' commands "$@" +} +(( $+functions[_sqlx__migrate__help__info_commands] )) || +_sqlx__migrate__help__info_commands() { + local commands; commands=() + _describe -t commands 'sqlx migrate help info commands' commands "$@" +} +(( $+functions[_sqlx__migrate__help__revert_commands] )) || +_sqlx__migrate__help__revert_commands() { + local commands; commands=() + _describe -t commands 'sqlx migrate help revert commands' commands "$@" +} +(( $+functions[_sqlx__migrate__help__run_commands] )) || +_sqlx__migrate__help__run_commands() { + local commands; commands=() + _describe -t commands 'sqlx migrate help run commands' commands "$@" +} +(( $+functions[_sqlx__migrate__info_commands] )) || +_sqlx__migrate__info_commands() { + local commands; commands=() + _describe -t commands 'sqlx migrate info commands' commands "$@" +} +(( $+functions[_sqlx__migrate__revert_commands] )) || +_sqlx__migrate__revert_commands() { + local commands; commands=() + _describe -t commands 'sqlx migrate revert commands' commands "$@" +} +(( $+functions[_sqlx__migrate__run_commands] )) || +_sqlx__migrate__run_commands() { + local commands; commands=() + _describe -t commands 'sqlx migrate run commands' commands "$@" +} +(( $+functions[_sqlx__prepare_commands] )) || +_sqlx__prepare_commands() { + local commands; commands=() + _describe -t commands 'sqlx prepare commands' commands "$@" +} + +if [ "$funcstack[1]" = "_sqlx" ]; then + _sqlx "$@" +else + compdef _sqlx sqlx +fi diff --git a/config/zsh/completions/_uv b/config/zsh/completions/_uv new file mode 100644 index 00000000..1a7184e8 --- /dev/null +++ b/config/zsh/completions/_uv @@ -0,0 +1,4940 @@ +#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[@]}" : \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +'-V[Display the uv version]' \ +'--version[Display the uv 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 + (run) +_arguments "${_arguments_options[@]}" : \ +'(--all-extras)*--extra=[Include optional dependencies from the specified extra name]:EXTRA:_default' \ +'*--no-extra=[Exclude the specified optional dependencies, if \`--all-extras\` is supplied]:NO_EXTRA:_default' \ +'(--only-group --only-dev)*--group=[Include dependencies from the specified dependency group]:GROUP:_default' \ +'*--no-group=[Disable the specified dependency group]:NO_GROUP:_default' \ +'(--group --dev --all-groups)*--only-group=[Only include dependencies from the specified dependency group]:ONLY_GROUP:_default' \ +'*--env-file=[Load environment variables from a \`.env\` file]:ENV_FILE:_files' \ +'*-w+[Run with the given packages installed]:WITH:_default' \ +'*--with=[Run with the given packages installed]:WITH:_default' \ +'*--with-editable=[Run with the given packages installed in editable mode]:WITH_EDITABLE:_default' \ +'*--with-requirements=[Run with all packages listed in the given \`requirements.txt\` files]:WITH_REQUIREMENTS:_default' \ +'*--index=[The URLs to use when resolving dependencies, in addition to the default index]:INDEX:_default' \ +'--default-index=[The URL of the default package index (by default\: )]:DEFAULT_INDEX:_default' \ +'-i+[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: )]:INDEX_URL:_default' \ +'--index-url=[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: )]:INDEX_URL:_default' \ +'*--extra-index-url=[(Deprecated\: use \`--index\` instead) Extra URLs of package indexes to use, in addition to \`--index-url\`]:EXTRA_INDEX_URL:_default' \ +'*-f+[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \ +'*--find-links=[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \ +'*-P+[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \ +'*--upgrade-package=[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \ +'*--reinstall-package=[Reinstall a specific package, regardless of whether it'\''s already installed. Implies \`--refresh-package\`]:REINSTALL_PACKAGE:_default' \ +'--index-strategy=[The strategy to use when resolving against multiple index URLs]:INDEX_STRATEGY:((first-index\:"Only use results from the first index that returns a match for a given package name" +unsafe-first-match\:"Search for every package name across all indexes, exhausting the versions from the first index before moving on to the next" +unsafe-best-match\:"Search for every package name across all indexes, preferring the "best" version found. If a package version is in multiple indexes, only look at the entry for the first index"))' \ +'--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"))' \ +'--resolution=[The strategy to use when selecting between the different compatible versions for a given package requirement]: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=[The strategy to use when considering pre-release versions]: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"))' \ +'--fork-strategy=[The strategy to use when selecting multiple versions of a given package across Python versions and platforms]:FORK_STRATEGY:((fewest\:"Optimize for selecting the fewest number of versions for each package. Older versions may be preferred if they are compatible with a wider range of supported Python versions or platforms" +requires-python\:"Optimize for selecting latest supported version of each package, for each supported Python version"))' \ +'*-C+[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \ +'*--config-setting=[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \ +'*--config-settings-package=[Settings to pass to the PEP 517 build backend for a specific package, specified as \`PACKAGE\:KEY=VALUE\` pairs]:CONFIG_SETTINGS_PACKAGE:_default' \ +'*--no-build-isolation-package=[Disable isolation when building source distributions for a specific package]:NO_BUILD_ISOLATION_PACKAGE:_default' \ +'--exclude-newer=[Limit candidate packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER:_default' \ +'*--exclude-newer-package=[Limit candidate packages for specific packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER_PACKAGE:_default' \ +'--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\` directory" +copy\:"Copy packages from the wheel into the \`site-packages\` directory" +hardlink\:"Hard link packages from the wheel into the \`site-packages\` directory" +symlink\:"Symbolically link packages from the wheel into the \`site-packages\` directory"))' \ +'*--no-build-package=[Don'\''t build source distributions for a specific package]:NO_BUILD_PACKAGE:_default' \ +'*--no-binary-package=[Don'\''t install pre-built wheels for a specific package]:NO_BINARY_PACKAGE:_default' \ +'*--refresh-package=[Refresh cached data for a specific package]:REFRESH_PACKAGE:_default' \ +'(--all-packages)--package=[Run the command in a specific package in the workspace]:PACKAGE:_default' \ +'-p+[The Python interpreter to use for the run environment.]:PYTHON:_default' \ +'--python=[The Python interpreter to use for the run environment.]:PYTHON:_default' \ +'--max-recursion-depth=[Number of times that \`uv run\` will allow recursive invocations]:MAX_RECURSION_DEPTH:_default' \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'(--extra)--all-extras[Include all optional dependencies]' \ +'--no-all-extras[]' \ +'--dev[Include the development dependency group]' \ +'--no-dev[Disable the development dependency group]' \ +'--no-default-groups[Ignore the default dependency groups]' \ +'(--only-group --only-dev)--all-groups[Include dependencies from all dependency groups]' \ +'(-s --script --gui-script)-m[Run a Python module]' \ +'(-s --script --gui-script)--module[Run a Python module]' \ +'(--group --all-groups --no-dev)--only-dev[Only include the development dependency group]' \ +'--no-editable[Install any editable dependencies, including the project and any workspace members, as non-editable]' \ +'--inexact[Do not remove extraneous packages present in the environment]' \ +'--exact[Perform an exact sync, removing extraneous packages]' \ +'--no-env-file[Avoid reading environment variables from a \`.env\` file]' \ +'--isolated[Run the command in an isolated virtual environment]' \ +'--active[Prefer the active virtual environment over the project'\''s virtual environment]' \ +'--no-active[Prefer project'\''s virtual environment over an active environment]' \ +'--no-sync[Avoid syncing the virtual environment]' \ +'(--frozen -U --upgrade)--locked[Assert that the \`uv.lock\` will remain unchanged]' \ +'(--locked -U --upgrade --no-sources)--frozen[Run without updating the \`uv.lock\` file]' \ +'(-m --module --gui-script)-s[Run the given path as a Python script]' \ +'(-m --module --gui-script)--script[Run the given path as a Python script]' \ +'(-s --script -m --module)--gui-script[Run the given path as a Python GUI script]' \ +'--no-index[Ignore the registry index (e.g., PyPI), instead relying on direct URL dependencies and those provided via \`--find-links\`]' \ +'-U[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \ +'--upgrade[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \ +'--no-upgrade[]' \ +'--reinstall[Reinstall all packages, regardless of whether they'\''re already installed. Implies \`--refresh\`]' \ +'--no-reinstall[]' \ +'--pre[]' \ +'--no-build-isolation[Disable isolation when building source distributions]' \ +'--build-isolation[]' \ +'--compile-bytecode[Compile Python files to bytecode after installation]' \ +'--no-compile-bytecode[]' \ +'--no-sources[Ignore the \`tool.uv.sources\` table when resolving dependencies. Used to lock against the standards-compliant, publishable package metadata, as opposed to using any workspace, Git, URL, or local path sources]' \ +'--no-build[Don'\''t build source distributions]' \ +'--build[]' \ +'--no-binary[Don'\''t install pre-built wheels]' \ +'--binary[]' \ +'(--offline)--refresh[Refresh all cached data]' \ +'(--offline)--no-refresh[]' \ +'(--package)--all-packages[Run the command with all workspace members installed]' \ +'(--package)--no-project[Avoid discovering the project or workspace]' \ +'--show-resolution[Whether to show resolver and installer output from any environment modifications]' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +"*::external_command:_default" \ +&& ret=0 +;; +(init) +_arguments "${_arguments_options[@]}" : \ +'(--script)--name=[The name of the project]:NAME:_default' \ +'(--script)--description=[Set the project description]:DESCRIPTION:_default' \ +'(--script)--vcs=[Initialize a version control system for the project]:VCS:((git\:"Use Git for version control" +none\:"Do not use any version control system"))' \ +'(--script --no-package)--build-backend=[Initialize a build-backend of choice for the project]:BUILD_BACKEND:((uv\:"Use uv as the project build backend" +hatch\:"Use \[hatchling\](https\://pypi.org/project/hatchling) as the project build backend" +flit\:"Use \[flit-core\](https\://pypi.org/project/flit-core) as the project build backend" +pdm\:"Use \[pdm-backend\](https\://pypi.org/project/pdm-backend) as the project build backend" +poetry\:"Use \[poetry-core\](https\://pypi.org/project/poetry-core) as the project build backend" +setuptools\:"Use \[setuptools\](https\://pypi.org/project/setuptools) as the project build backend" +maturin\:"Use \[maturin\](https\://pypi.org/project/maturin) as the project build backend" +scikit\:"Use \[scikit-build-core\](https\://pypi.org/project/scikit-build-core) as the project build backend"))' \ +'--author-from=[Fill in the \`authors\` field in the \`pyproject.toml\`]:AUTHOR_FROM:((auto\:"Fetch the author information from some sources (e.g., Git) automatically" +git\:"Fetch the author information from Git configuration only" +none\:"Do not infer the author information"))' \ +'-p+[The Python interpreter to use to determine the minimum supported Python version.]:PYTHON:_default' \ +'--python=[The Python interpreter to use to determine the minimum supported Python version.]:PYTHON:_default' \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'(--script)--bare[Only create a \`pyproject.toml\`]' \ +'(--package)--virtual[Create a virtual project, rather than a package]' \ +'--package[Set up the project to be built as a Python package]' \ +'(--lib --build-backend)--no-package[Do not set up the project to be built as a Python package]' \ +'(--lib --script)--app[Create a project for an application]' \ +'(--app --script)--lib[Create a project for a library]' \ +'(--app --lib --package --build-backend --description)--script[Create a script]' \ +'(--script)--no-description[Disable the description for the project]' \ +'--backend[Invalid option name for build backend]' \ +'--no-readme[Do not create a \`README.md\` file]' \ +'--no-pin-python[Do not create a \`.python-version\` file for the project]' \ +'--pin-python[Create a \`.python-version\` file for the project]' \ +'--no-workspace[Avoid discovering a workspace and create a standalone project]' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +'::path -- The path to use for the project/script:_files' \ +&& ret=0 +;; +(add) +_arguments "${_arguments_options[@]}" : \ +'*-r+[Add all packages listed in the given \`requirements.txt\` files]:REQUIREMENTS:_files' \ +'*--requirements=[Add all packages listed in the given \`requirements.txt\` files]:REQUIREMENTS:_files' \ +'*-c+[Constrain versions using the given requirements files]:CONSTRAINTS:_default' \ +'*--constraints=[Constrain versions using the given requirements files]:CONSTRAINTS:_default' \ +'-m+[Apply this marker to all added packages]:MARKER:_default' \ +'--marker=[Apply this marker to all added packages]:MARKER:_default' \ +'(--dev --group)--optional=[Add the requirements to the package'\''s optional dependencies for the specified extra]:OPTIONAL:_default' \ +'(--dev --optional --script)--group=[Add the requirements to the specified dependency group]:GROUP:_default' \ +'--bounds=[The kind of version specifier to use when adding dependencies]:BOUNDS:((lower\:"Only a lower bound, e.g., \`>=1.2.3\`" +major\:"Allow the same major version, similar to the semver caret, e.g., \`>=1.2.3, <2.0.0\`" +minor\:"Allow the same minor version, similar to the semver tilde, e.g., \`>=1.2.3, <1.3.0\`" +exact\:"Pin the exact version, e.g., \`==1.2.3\`"))' \ +'--rev=[Commit to use when adding a dependency from Git]:REV:_default' \ +'--tag=[Tag to use when adding a dependency from Git]:TAG:_default' \ +'--branch=[Branch to use when adding a dependency from Git]:BRANCH:_default' \ +'*--extra=[Extras to enable for the dependency]:EXTRA:_default' \ +'*--index=[The URLs to use when resolving dependencies, in addition to the default index]:INDEX:_default' \ +'--default-index=[The URL of the default package index (by default\: )]:DEFAULT_INDEX:_default' \ +'-i+[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: )]:INDEX_URL:_default' \ +'--index-url=[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: )]:INDEX_URL:_default' \ +'*--extra-index-url=[(Deprecated\: use \`--index\` instead) Extra URLs of package indexes to use, in addition to \`--index-url\`]:EXTRA_INDEX_URL:_default' \ +'*-f+[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \ +'*--find-links=[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \ +'*-P+[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \ +'*--upgrade-package=[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \ +'*--reinstall-package=[Reinstall a specific package, regardless of whether it'\''s already installed. Implies \`--refresh-package\`]:REINSTALL_PACKAGE:_default' \ +'--index-strategy=[The strategy to use when resolving against multiple index URLs]:INDEX_STRATEGY:((first-index\:"Only use results from the first index that returns a match for a given package name" +unsafe-first-match\:"Search for every package name across all indexes, exhausting the versions from the first index before moving on to the next" +unsafe-best-match\:"Search for every package name across all indexes, preferring the "best" version found. If a package version is in multiple indexes, only look at the entry for the first index"))' \ +'--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"))' \ +'--resolution=[The strategy to use when selecting between the different compatible versions for a given package requirement]: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=[The strategy to use when considering pre-release versions]: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"))' \ +'--fork-strategy=[The strategy to use when selecting multiple versions of a given package across Python versions and platforms]:FORK_STRATEGY:((fewest\:"Optimize for selecting the fewest number of versions for each package. Older versions may be preferred if they are compatible with a wider range of supported Python versions or platforms" +requires-python\:"Optimize for selecting latest supported version of each package, for each supported Python version"))' \ +'*-C+[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \ +'*--config-setting=[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \ +'*--config-settings-package=[Settings to pass to the PEP 517 build backend for a specific package, specified as \`PACKAGE\:KEY=VALUE\` pairs]:CONFIG_SETTINGS_PACKAGE:_default' \ +'*--no-build-isolation-package=[Disable isolation when building source distributions for a specific package]:NO_BUILD_ISOLATION_PACKAGE:_default' \ +'--exclude-newer=[Limit candidate packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER:_default' \ +'*--exclude-newer-package=[Limit candidate packages for specific packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER_PACKAGE:_default' \ +'--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\` directory" +copy\:"Copy packages from the wheel into the \`site-packages\` directory" +hardlink\:"Hard link packages from the wheel into the \`site-packages\` directory" +symlink\:"Symbolically link packages from the wheel into the \`site-packages\` directory"))' \ +'*--no-build-package=[Don'\''t build source distributions for a specific package]:NO_BUILD_PACKAGE:_default' \ +'*--no-binary-package=[Don'\''t install pre-built wheels for a specific package]:NO_BINARY_PACKAGE:_default' \ +'*--refresh-package=[Refresh cached data for a specific package]:REFRESH_PACKAGE:_default' \ +'(--isolated)--package=[Add the dependency to a specific package in the workspace]:PACKAGE:_default' \ +'(--dev --optional --package --workspace)--script=[Add the dependency to the specified Python script, rather than to a project]:SCRIPT:_files' \ +'-p+[The Python interpreter to use for resolving and syncing.]:PYTHON:_default' \ +'--python=[The Python interpreter to use for resolving and syncing.]:PYTHON:_default' \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'(--optional --group --script)--dev[Add the requirements to the development dependency group]' \ +'--editable[Add the requirements as editable]' \ +'--no-editable[]' \ +'(--editable --no-editable --rev --tag --branch)--raw[Add a dependency as provided]' \ +'(--frozen)--no-sync[Avoid syncing the virtual environment]' \ +'(--frozen -U --upgrade)--locked[Assert that the \`uv.lock\` will remain unchanged]' \ +'(--locked -U --upgrade --no-sources)--frozen[Add dependencies without re-locking the project]' \ +'--active[Prefer the active virtual environment over the project'\''s virtual environment]' \ +'--no-active[Prefer project'\''s virtual environment over an active environment]' \ +'--no-index[Ignore the registry index (e.g., PyPI), instead relying on direct URL dependencies and those provided via \`--find-links\`]' \ +'-U[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \ +'--upgrade[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \ +'--no-upgrade[]' \ +'--reinstall[Reinstall all packages, regardless of whether they'\''re already installed. Implies \`--refresh\`]' \ +'--no-reinstall[]' \ +'--pre[]' \ +'--no-build-isolation[Disable isolation when building source distributions]' \ +'--build-isolation[]' \ +'--compile-bytecode[Compile Python files to bytecode after installation]' \ +'--no-compile-bytecode[]' \ +'--no-sources[Ignore the \`tool.uv.sources\` table when resolving dependencies. Used to lock against the standards-compliant, publishable package metadata, as opposed to using any workspace, Git, URL, or local path sources]' \ +'--no-build[Don'\''t build source distributions]' \ +'--build[]' \ +'--no-binary[Don'\''t install pre-built wheels]' \ +'--binary[]' \ +'(--offline)--refresh[Refresh all cached data]' \ +'(--offline)--no-refresh[]' \ +'--workspace[Add the dependency as a workspace member]' \ +'--no-workspace[Don'\''t add the dependency as a workspace member]' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +'*::packages -- The packages to add, as PEP 508 requirements (e.g., `ruff==0.5.0`):_default' \ +&& ret=0 +;; +(remove) +_arguments "${_arguments_options[@]}" : \ +'(--dev --group --script)--optional=[Remove the packages from the project'\''s optional dependencies for the specified extra]:OPTIONAL:_default' \ +'(--dev --optional --script)--group=[Remove the packages from the specified dependency group]:GROUP:_default' \ +'*--index=[The URLs to use when resolving dependencies, in addition to the default index]:INDEX:_default' \ +'--default-index=[The URL of the default package index (by default\: )]:DEFAULT_INDEX:_default' \ +'-i+[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: )]:INDEX_URL:_default' \ +'--index-url=[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: )]:INDEX_URL:_default' \ +'*--extra-index-url=[(Deprecated\: use \`--index\` instead) Extra URLs of package indexes to use, in addition to \`--index-url\`]:EXTRA_INDEX_URL:_default' \ +'*-f+[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \ +'*--find-links=[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \ +'*-P+[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \ +'*--upgrade-package=[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \ +'*--reinstall-package=[Reinstall a specific package, regardless of whether it'\''s already installed. Implies \`--refresh-package\`]:REINSTALL_PACKAGE:_default' \ +'--index-strategy=[The strategy to use when resolving against multiple index URLs]:INDEX_STRATEGY:((first-index\:"Only use results from the first index that returns a match for a given package name" +unsafe-first-match\:"Search for every package name across all indexes, exhausting the versions from the first index before moving on to the next" +unsafe-best-match\:"Search for every package name across all indexes, preferring the "best" version found. If a package version is in multiple indexes, only look at the entry for the first index"))' \ +'--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"))' \ +'--resolution=[The strategy to use when selecting between the different compatible versions for a given package requirement]: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=[The strategy to use when considering pre-release versions]: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"))' \ +'--fork-strategy=[The strategy to use when selecting multiple versions of a given package across Python versions and platforms]:FORK_STRATEGY:((fewest\:"Optimize for selecting the fewest number of versions for each package. Older versions may be preferred if they are compatible with a wider range of supported Python versions or platforms" +requires-python\:"Optimize for selecting latest supported version of each package, for each supported Python version"))' \ +'*-C+[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \ +'*--config-setting=[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \ +'*--config-settings-package=[Settings to pass to the PEP 517 build backend for a specific package, specified as \`PACKAGE\:KEY=VALUE\` pairs]:CONFIG_SETTINGS_PACKAGE:_default' \ +'*--no-build-isolation-package=[Disable isolation when building source distributions for a specific package]:NO_BUILD_ISOLATION_PACKAGE:_default' \ +'--exclude-newer=[Limit candidate packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER:_default' \ +'*--exclude-newer-package=[Limit candidate packages for specific packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER_PACKAGE:_default' \ +'--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\` directory" +copy\:"Copy packages from the wheel into the \`site-packages\` directory" +hardlink\:"Hard link packages from the wheel into the \`site-packages\` directory" +symlink\:"Symbolically link packages from the wheel into the \`site-packages\` directory"))' \ +'*--no-build-package=[Don'\''t build source distributions for a specific package]:NO_BUILD_PACKAGE:_default' \ +'*--no-binary-package=[Don'\''t install pre-built wheels for a specific package]:NO_BINARY_PACKAGE:_default' \ +'*--refresh-package=[Refresh cached data for a specific package]:REFRESH_PACKAGE:_default' \ +'(--isolated)--package=[Remove the dependencies from a specific package in the workspace]:PACKAGE:_default' \ +'--script=[Remove the dependency from the specified Python script, rather than from a project]:SCRIPT:_files' \ +'-p+[The Python interpreter to use for resolving and syncing.]:PYTHON:_default' \ +'--python=[The Python interpreter to use for resolving and syncing.]:PYTHON:_default' \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'(--optional --group)--dev[Remove the packages from the development dependency group]' \ +'(--frozen)--no-sync[Avoid syncing the virtual environment after re-locking the project]' \ +'--active[Prefer the active virtual environment over the project'\''s virtual environment]' \ +'--no-active[Prefer project'\''s virtual environment over an active environment]' \ +'(--frozen -U --upgrade)--locked[Assert that the \`uv.lock\` will remain unchanged]' \ +'(--locked -U --upgrade --no-sources)--frozen[Remove dependencies without re-locking the project]' \ +'--no-index[Ignore the registry index (e.g., PyPI), instead relying on direct URL dependencies and those provided via \`--find-links\`]' \ +'-U[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \ +'--upgrade[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \ +'--no-upgrade[]' \ +'--reinstall[Reinstall all packages, regardless of whether they'\''re already installed. Implies \`--refresh\`]' \ +'--no-reinstall[]' \ +'--pre[]' \ +'--no-build-isolation[Disable isolation when building source distributions]' \ +'--build-isolation[]' \ +'--compile-bytecode[Compile Python files to bytecode after installation]' \ +'--no-compile-bytecode[]' \ +'--no-sources[Ignore the \`tool.uv.sources\` table when resolving dependencies. Used to lock against the standards-compliant, publishable package metadata, as opposed to using any workspace, Git, URL, or local path sources]' \ +'--no-build[Don'\''t build source distributions]' \ +'--build[]' \ +'--no-binary[Don'\''t install pre-built wheels]' \ +'--binary[]' \ +'(--offline)--refresh[Refresh all cached data]' \ +'(--offline)--no-refresh[]' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +'*::packages -- The names of the dependencies to remove (e.g., `ruff`):_default' \ +&& ret=0 +;; +(version) +_arguments "${_arguments_options[@]}" : \ +'*--bump=[Update the project version using the given semantics]:BUMP:((major\:"Increase the major version (e.g., 1.2.3 => 2.0.0)" +minor\:"Increase the minor version (e.g., 1.2.3 => 1.3.0)" +patch\:"Increase the patch version (e.g., 1.2.3 => 1.2.4)" +stable\:"Move from a pre-release to stable version (e.g., 1.2.3b4.post5.dev6 => 1.2.3)" +alpha\:"Increase the alpha version (e.g., 1.2.3a4 => 1.2.3a5)" +beta\:"Increase the beta version (e.g., 1.2.3b4 => 1.2.3b5)" +rc\:"Increase the rc version (e.g., 1.2.3rc4 => 1.2.3rc5)" +post\:"Increase the post version (e.g., 1.2.3.post5 => 1.2.3.post6)" +dev\:"Increase the dev version (e.g., 1.2.3a4.dev6 => 1.2.3.dev7)"))' \ +'--output-format=[The format of the output]:OUTPUT_FORMAT:((text\:"Display the version as plain text" +json\:"Display the version as JSON"))' \ +'*--index=[The URLs to use when resolving dependencies, in addition to the default index]:INDEX:_default' \ +'--default-index=[The URL of the default package index (by default\: )]:DEFAULT_INDEX:_default' \ +'-i+[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: )]:INDEX_URL:_default' \ +'--index-url=[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: )]:INDEX_URL:_default' \ +'*--extra-index-url=[(Deprecated\: use \`--index\` instead) Extra URLs of package indexes to use, in addition to \`--index-url\`]:EXTRA_INDEX_URL:_default' \ +'*-f+[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \ +'*--find-links=[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \ +'*-P+[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \ +'*--upgrade-package=[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \ +'*--reinstall-package=[Reinstall a specific package, regardless of whether it'\''s already installed. Implies \`--refresh-package\`]:REINSTALL_PACKAGE:_default' \ +'--index-strategy=[The strategy to use when resolving against multiple index URLs]:INDEX_STRATEGY:((first-index\:"Only use results from the first index that returns a match for a given package name" +unsafe-first-match\:"Search for every package name across all indexes, exhausting the versions from the first index before moving on to the next" +unsafe-best-match\:"Search for every package name across all indexes, preferring the "best" version found. If a package version is in multiple indexes, only look at the entry for the first index"))' \ +'--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"))' \ +'--resolution=[The strategy to use when selecting between the different compatible versions for a given package requirement]: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=[The strategy to use when considering pre-release versions]: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"))' \ +'--fork-strategy=[The strategy to use when selecting multiple versions of a given package across Python versions and platforms]:FORK_STRATEGY:((fewest\:"Optimize for selecting the fewest number of versions for each package. Older versions may be preferred if they are compatible with a wider range of supported Python versions or platforms" +requires-python\:"Optimize for selecting latest supported version of each package, for each supported Python version"))' \ +'*-C+[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \ +'*--config-setting=[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \ +'*--config-settings-package=[Settings to pass to the PEP 517 build backend for a specific package, specified as \`PACKAGE\:KEY=VALUE\` pairs]:CONFIG_SETTINGS_PACKAGE:_default' \ +'*--no-build-isolation-package=[Disable isolation when building source distributions for a specific package]:NO_BUILD_ISOLATION_PACKAGE:_default' \ +'--exclude-newer=[Limit candidate packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER:_default' \ +'*--exclude-newer-package=[Limit candidate packages for specific packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER_PACKAGE:_default' \ +'--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\` directory" +copy\:"Copy packages from the wheel into the \`site-packages\` directory" +hardlink\:"Hard link packages from the wheel into the \`site-packages\` directory" +symlink\:"Symbolically link packages from the wheel into the \`site-packages\` directory"))' \ +'*--no-build-package=[Don'\''t build source distributions for a specific package]:NO_BUILD_PACKAGE:_default' \ +'*--no-binary-package=[Don'\''t install pre-built wheels for a specific package]:NO_BINARY_PACKAGE:_default' \ +'*--refresh-package=[Refresh cached data for a specific package]:REFRESH_PACKAGE:_default' \ +'(--isolated)--package=[Update the version of a specific package in the workspace]:PACKAGE:_default' \ +'-p+[The Python interpreter to use for resolving and syncing.]:PYTHON:_default' \ +'--python=[The Python interpreter to use for resolving and syncing.]:PYTHON:_default' \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'--dry-run[Don'\''t write a new version to the \`pyproject.toml\`]' \ +'--short[Only show the version]' \ +'(--frozen)--no-sync[Avoid syncing the virtual environment after re-locking the project]' \ +'--active[Prefer the active virtual environment over the project'\''s virtual environment]' \ +'--no-active[Prefer project'\''s virtual environment over an active environment]' \ +'(--frozen -U --upgrade)--locked[Assert that the \`uv.lock\` will remain unchanged]' \ +'(--locked -U --upgrade --no-sources)--frozen[Update the version without re-locking the project]' \ +'--no-index[Ignore the registry index (e.g., PyPI), instead relying on direct URL dependencies and those provided via \`--find-links\`]' \ +'-U[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \ +'--upgrade[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \ +'--no-upgrade[]' \ +'--reinstall[Reinstall all packages, regardless of whether they'\''re already installed. Implies \`--refresh\`]' \ +'--no-reinstall[]' \ +'--pre[]' \ +'--no-build-isolation[Disable isolation when building source distributions]' \ +'--build-isolation[]' \ +'--compile-bytecode[Compile Python files to bytecode after installation]' \ +'--no-compile-bytecode[]' \ +'--no-sources[Ignore the \`tool.uv.sources\` table when resolving dependencies. Used to lock against the standards-compliant, publishable package metadata, as opposed to using any workspace, Git, URL, or local path sources]' \ +'--no-build[Don'\''t build source distributions]' \ +'--build[]' \ +'--no-binary[Don'\''t install pre-built wheels]' \ +'--binary[]' \ +'(--offline)--refresh[Refresh all cached data]' \ +'(--offline)--no-refresh[]' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +'::value -- Set the project version to this value:_default' \ +&& ret=0 +;; +(sync) +_arguments "${_arguments_options[@]}" : \ +'(--all-extras)*--extra=[Include optional dependencies from the specified extra name]:EXTRA:_default' \ +'--output-format=[Select the output format]:OUTPUT_FORMAT:((text\:"Display the result in a human-readable format" +json\:"Display the result in JSON format"))' \ +'*--no-extra=[Exclude the specified optional dependencies, if \`--all-extras\` is supplied]:NO_EXTRA:_default' \ +'(--only-group --only-dev)*--group=[Include dependencies from the specified dependency group]:GROUP:_default' \ +'*--no-group=[Disable the specified dependency group]:NO_GROUP:_default' \ +'(--group --dev --all-groups)*--only-group=[Only include dependencies from the specified dependency group]:ONLY_GROUP:_default' \ +'*--no-install-package=[Do not install the given package(s)]:NO_INSTALL_PACKAGE:_default' \ +'*--index=[The URLs to use when resolving dependencies, in addition to the default index]:INDEX:_default' \ +'--default-index=[The URL of the default package index (by default\: )]:DEFAULT_INDEX:_default' \ +'-i+[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: )]:INDEX_URL:_default' \ +'--index-url=[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: )]:INDEX_URL:_default' \ +'*--extra-index-url=[(Deprecated\: use \`--index\` instead) Extra URLs of package indexes to use, in addition to \`--index-url\`]:EXTRA_INDEX_URL:_default' \ +'*-f+[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \ +'*--find-links=[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \ +'*-P+[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \ +'*--upgrade-package=[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \ +'*--reinstall-package=[Reinstall a specific package, regardless of whether it'\''s already installed. Implies \`--refresh-package\`]:REINSTALL_PACKAGE:_default' \ +'--index-strategy=[The strategy to use when resolving against multiple index URLs]:INDEX_STRATEGY:((first-index\:"Only use results from the first index that returns a match for a given package name" +unsafe-first-match\:"Search for every package name across all indexes, exhausting the versions from the first index before moving on to the next" +unsafe-best-match\:"Search for every package name across all indexes, preferring the "best" version found. If a package version is in multiple indexes, only look at the entry for the first index"))' \ +'--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"))' \ +'--resolution=[The strategy to use when selecting between the different compatible versions for a given package requirement]: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=[The strategy to use when considering pre-release versions]: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"))' \ +'--fork-strategy=[The strategy to use when selecting multiple versions of a given package across Python versions and platforms]:FORK_STRATEGY:((fewest\:"Optimize for selecting the fewest number of versions for each package. Older versions may be preferred if they are compatible with a wider range of supported Python versions or platforms" +requires-python\:"Optimize for selecting latest supported version of each package, for each supported Python version"))' \ +'*-C+[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \ +'*--config-setting=[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \ +'*--config-settings-package=[Settings to pass to the PEP 517 build backend for a specific package, specified as \`PACKAGE\:KEY=VALUE\` pairs]:CONFIG_SETTINGS_PACKAGE:_default' \ +'*--no-build-isolation-package=[Disable isolation when building source distributions for a specific package]:NO_BUILD_ISOLATION_PACKAGE:_default' \ +'--exclude-newer=[Limit candidate packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER:_default' \ +'*--exclude-newer-package=[Limit candidate packages for specific packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER_PACKAGE:_default' \ +'--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\` directory" +copy\:"Copy packages from the wheel into the \`site-packages\` directory" +hardlink\:"Hard link packages from the wheel into the \`site-packages\` directory" +symlink\:"Symbolically link packages from the wheel into the \`site-packages\` directory"))' \ +'*--no-build-package=[Don'\''t build source distributions for a specific package]:NO_BUILD_PACKAGE:_default' \ +'*--no-binary-package=[Don'\''t install pre-built wheels for a specific package]:NO_BINARY_PACKAGE:_default' \ +'*--refresh-package=[Refresh cached data for a specific package]:REFRESH_PACKAGE:_default' \ +'(--all-packages)--package=[Sync for a specific package in the workspace]:PACKAGE:_default' \ +'(--all-packages --package --no-install-project --no-install-workspace --extra --all-extras --no-extra --no-all-extras --dev --no-dev --only-dev --group --no-group --no-default-groups --only-group --all-groups)--script=[Sync the environment for a Python script, rather than the current project]:SCRIPT:_files' \ +'-p+[The Python interpreter to use for the project environment.]:PYTHON:_default' \ +'--python=[The Python interpreter to use for the project environment.]:PYTHON:_default' \ +'--python-platform=[The platform for which requirements should be installed]:PYTHON_PLATFORM:((windows\:"An alias for \`x86_64-pc-windows-msvc\`, the default target for Windows" +linux\:"An alias for \`x86_64-unknown-linux-gnu\`, the default target for Linux" +macos\:"An alias for \`aarch64-apple-darwin\`, the default target for macOS" +x86_64-pc-windows-msvc\:"A 64-bit x86 Windows target" +i686-pc-windows-msvc\:"A 32-bit x86 Windows target" +x86_64-unknown-linux-gnu\:"An x86 Linux target. Equivalent to \`x86_64-manylinux_2_28\`" +aarch64-apple-darwin\:"An ARM-based macOS target, as seen on Apple Silicon devices" +x86_64-apple-darwin\:"An x86 macOS target" +aarch64-unknown-linux-gnu\:"An ARM64 Linux target. Equivalent to \`aarch64-manylinux_2_28\`" +aarch64-unknown-linux-musl\:"An ARM64 Linux target" +x86_64-unknown-linux-musl\:"An \`x86_64\` Linux target" +x86_64-manylinux2014\:"An \`x86_64\` target for the \`manylinux2014\` platform. Equivalent to \`x86_64-manylinux_2_17\`" +x86_64-manylinux_2_17\:"An \`x86_64\` target for the \`manylinux_2_17\` platform" +x86_64-manylinux_2_28\:"An \`x86_64\` target for the \`manylinux_2_28\` platform" +x86_64-manylinux_2_31\:"An \`x86_64\` target for the \`manylinux_2_31\` platform" +x86_64-manylinux_2_32\:"An \`x86_64\` target for the \`manylinux_2_32\` platform" +x86_64-manylinux_2_33\:"An \`x86_64\` target for the \`manylinux_2_33\` platform" +x86_64-manylinux_2_34\:"An \`x86_64\` target for the \`manylinux_2_34\` platform" +x86_64-manylinux_2_35\:"An \`x86_64\` target for the \`manylinux_2_35\` platform" +x86_64-manylinux_2_36\:"An \`x86_64\` target for the \`manylinux_2_36\` platform" +x86_64-manylinux_2_37\:"An \`x86_64\` target for the \`manylinux_2_37\` platform" +x86_64-manylinux_2_38\:"An \`x86_64\` target for the \`manylinux_2_38\` platform" +x86_64-manylinux_2_39\:"An \`x86_64\` target for the \`manylinux_2_39\` platform" +x86_64-manylinux_2_40\:"An \`x86_64\` target for the \`manylinux_2_40\` platform" +aarch64-manylinux2014\:"An ARM64 target for the \`manylinux2014\` platform. Equivalent to \`aarch64-manylinux_2_17\`" +aarch64-manylinux_2_17\:"An ARM64 target for the \`manylinux_2_17\` platform" +aarch64-manylinux_2_28\:"An ARM64 target for the \`manylinux_2_28\` platform" +aarch64-manylinux_2_31\:"An ARM64 target for the \`manylinux_2_31\` platform" +aarch64-manylinux_2_32\:"An ARM64 target for the \`manylinux_2_32\` platform" +aarch64-manylinux_2_33\:"An ARM64 target for the \`manylinux_2_33\` platform" +aarch64-manylinux_2_34\:"An ARM64 target for the \`manylinux_2_34\` platform" +aarch64-manylinux_2_35\:"An ARM64 target for the \`manylinux_2_35\` platform" +aarch64-manylinux_2_36\:"An ARM64 target for the \`manylinux_2_36\` platform" +aarch64-manylinux_2_37\:"An ARM64 target for the \`manylinux_2_37\` platform" +aarch64-manylinux_2_38\:"An ARM64 target for the \`manylinux_2_38\` platform" +aarch64-manylinux_2_39\:"An ARM64 target for the \`manylinux_2_39\` platform" +aarch64-manylinux_2_40\:"An ARM64 target for the \`manylinux_2_40\` platform" +wasm32-pyodide2024\:"A wasm32 target using the Pyodide 2024 platform. Meant for use with Python 3.12"))' \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'(--extra)--all-extras[Include all optional dependencies]' \ +'--no-all-extras[]' \ +'--dev[Include the development dependency group]' \ +'--no-dev[Disable the development dependency group]' \ +'(--group --all-groups --no-dev)--only-dev[Only include the development dependency group]' \ +'--no-default-groups[Ignore the default dependency groups]' \ +'(--only-group --only-dev)--all-groups[Include dependencies from all dependency groups]' \ +'--no-editable[Install any editable dependencies, including the project and any workspace members, as non-editable]' \ +'--inexact[Do not remove extraneous packages present in the environment]' \ +'--exact[Perform an exact sync, removing extraneous packages]' \ +'--active[Sync dependencies to the active virtual environment]' \ +'--no-active[Prefer project'\''s virtual environment over an active environment]' \ +'--no-install-project[Do not install the current project]' \ +'--no-install-workspace[Do not install any workspace members, including the root project]' \ +'(--frozen -U --upgrade)--locked[Assert that the \`uv.lock\` will remain unchanged]' \ +'(--locked -U --upgrade --no-sources)--frozen[Sync without updating the \`uv.lock\` file]' \ +'--dry-run[Perform a dry run, without writing the lockfile or modifying the project environment]' \ +'--no-index[Ignore the registry index (e.g., PyPI), instead relying on direct URL dependencies and those provided via \`--find-links\`]' \ +'-U[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \ +'--upgrade[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \ +'--no-upgrade[]' \ +'--reinstall[Reinstall all packages, regardless of whether they'\''re already installed. Implies \`--refresh\`]' \ +'--no-reinstall[]' \ +'--pre[]' \ +'--no-build-isolation[Disable isolation when building source distributions]' \ +'--build-isolation[]' \ +'--compile-bytecode[Compile Python files to bytecode after installation]' \ +'--no-compile-bytecode[]' \ +'--no-sources[Ignore the \`tool.uv.sources\` table when resolving dependencies. Used to lock against the standards-compliant, publishable package metadata, as opposed to using any workspace, Git, URL, or local path sources]' \ +'--no-build[Don'\''t build source distributions]' \ +'--build[]' \ +'--no-binary[Don'\''t install pre-built wheels]' \ +'--binary[]' \ +'(--offline)--refresh[Refresh all cached data]' \ +'(--offline)--no-refresh[]' \ +'(--package)--all-packages[Sync all packages in the workspace]' \ +'--check[Check if the Python environment is synchronized with the project]' \ +'--no-check[]' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +&& ret=0 +;; +(lock) +_arguments "${_arguments_options[@]}" : \ +'--script=[Lock the specified Python script, rather than the current project]:SCRIPT:_files' \ +'*--index=[The URLs to use when resolving dependencies, in addition to the default index]:INDEX:_default' \ +'--default-index=[The URL of the default package index (by default\: )]:DEFAULT_INDEX:_default' \ +'-i+[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: )]:INDEX_URL:_default' \ +'--index-url=[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: )]:INDEX_URL:_default' \ +'*--extra-index-url=[(Deprecated\: use \`--index\` instead) Extra URLs of package indexes to use, in addition to \`--index-url\`]:EXTRA_INDEX_URL:_default' \ +'*-f+[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \ +'*--find-links=[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \ +'*-P+[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \ +'*--upgrade-package=[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \ +'--index-strategy=[The strategy to use when resolving against multiple index URLs]:INDEX_STRATEGY:((first-index\:"Only use results from the first index that returns a match for a given package name" +unsafe-first-match\:"Search for every package name across all indexes, exhausting the versions from the first index before moving on to the next" +unsafe-best-match\:"Search for every package name across all indexes, preferring the "best" version found. If a package version is in multiple indexes, only look at the entry for the first index"))' \ +'--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"))' \ +'--resolution=[The strategy to use when selecting between the different compatible versions for a given package requirement]: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=[The strategy to use when considering pre-release versions]: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"))' \ +'--fork-strategy=[The strategy to use when selecting multiple versions of a given package across Python versions and platforms]:FORK_STRATEGY:((fewest\:"Optimize for selecting the fewest number of versions for each package. Older versions may be preferred if they are compatible with a wider range of supported Python versions or platforms" +requires-python\:"Optimize for selecting latest supported version of each package, for each supported Python version"))' \ +'*-C+[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \ +'*--config-setting=[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \ +'*--config-settings-package=[Settings to pass to the PEP 517 build backend for a specific package, specified as \`PACKAGE\:KEY=VALUE\` pairs]:CONFIG_SETTINGS_PACKAGE:_default' \ +'*--no-build-isolation-package=[Disable isolation when building source distributions for a specific package]:NO_BUILD_ISOLATION_PACKAGE:_default' \ +'--exclude-newer=[Limit candidate packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER:_default' \ +'*--exclude-newer-package=[Limit candidate packages for a specific package to those that were uploaded prior to the given date]:EXCLUDE_NEWER_PACKAGE:_default' \ +'--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\` directory" +copy\:"Copy packages from the wheel into the \`site-packages\` directory" +hardlink\:"Hard link packages from the wheel into the \`site-packages\` directory" +symlink\:"Symbolically link packages from the wheel into the \`site-packages\` directory"))' \ +'*--no-build-package=[Don'\''t build source distributions for a specific package]:NO_BUILD_PACKAGE:_default' \ +'*--no-binary-package=[Don'\''t install pre-built wheels for a specific package]:NO_BINARY_PACKAGE:_default' \ +'*--refresh-package=[Refresh cached data for a specific package]:REFRESH_PACKAGE:_default' \ +'-p+[The Python interpreter to use during resolution.]:PYTHON:_default' \ +'--python=[The Python interpreter to use during resolution.]:PYTHON:_default' \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'(--check-exists -U --upgrade)--check[Check if the lockfile is up-to-date]' \ +'(--check)--check-exists[Assert that a \`uv.lock\` exists without checking if it is up-to-date]' \ +'(--check-exists --check)--dry-run[Perform a dry run, without writing the lockfile]' \ +'--no-index[Ignore the registry index (e.g., PyPI), instead relying on direct URL dependencies and those provided via \`--find-links\`]' \ +'-U[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \ +'--upgrade[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \ +'--no-upgrade[]' \ +'--pre[]' \ +'--no-build-isolation[Disable isolation when building source distributions]' \ +'--build-isolation[]' \ +'--no-sources[Ignore the \`tool.uv.sources\` table when resolving dependencies. Used to lock against the standards-compliant, publishable package metadata, as opposed to using any workspace, Git, URL, or local path sources]' \ +'--no-build[Don'\''t build source distributions]' \ +'--build[]' \ +'--no-binary[Don'\''t install pre-built wheels]' \ +'--binary[]' \ +'(--offline)--refresh[Refresh all cached data]' \ +'(--offline)--no-refresh[]' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +&& ret=0 +;; +(export) +_arguments "${_arguments_options[@]}" : \ +'--format=[The format to which \`uv.lock\` should be exported]:FORMAT:((requirements.txt\:"Export in \`requirements.txt\` format" +pylock.toml\:"Export in \`pylock.toml\` format"))' \ +'(--all-packages)--package=[Export the dependencies for a specific package in the workspace]:PACKAGE:_default' \ +'(--all-packages)*--prune=[Prune the given package from the dependency tree]:PACKAGE:_default' \ +'(--all-extras)*--extra=[Include optional dependencies from the specified extra name]:EXTRA:_default' \ +'*--no-extra=[Exclude the specified optional dependencies, if \`--all-extras\` is supplied]:NO_EXTRA:_default' \ +'(--only-group --only-dev)*--group=[Include dependencies from the specified dependency group]:GROUP:_default' \ +'*--no-group=[Disable the specified dependency group]:NO_GROUP:_default' \ +'(--group --dev --all-groups)*--only-group=[Only include dependencies from the specified dependency group]:ONLY_GROUP:_default' \ +'-o+[Write the exported requirements to the given file]:OUTPUT_FILE:_files' \ +'--output-file=[Write the exported requirements to the given file]:OUTPUT_FILE:_files' \ +'*--no-emit-package=[Do not emit the given package(s)]:NO_EMIT_PACKAGE:_default' \ +'*--index=[The URLs to use when resolving dependencies, in addition to the default index]:INDEX:_default' \ +'--default-index=[The URL of the default package index (by default\: )]:DEFAULT_INDEX:_default' \ +'-i+[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: )]:INDEX_URL:_default' \ +'--index-url=[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: )]:INDEX_URL:_default' \ +'*--extra-index-url=[(Deprecated\: use \`--index\` instead) Extra URLs of package indexes to use, in addition to \`--index-url\`]:EXTRA_INDEX_URL:_default' \ +'*-f+[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \ +'*--find-links=[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \ +'*-P+[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \ +'*--upgrade-package=[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \ +'--index-strategy=[The strategy to use when resolving against multiple index URLs]:INDEX_STRATEGY:((first-index\:"Only use results from the first index that returns a match for a given package name" +unsafe-first-match\:"Search for every package name across all indexes, exhausting the versions from the first index before moving on to the next" +unsafe-best-match\:"Search for every package name across all indexes, preferring the "best" version found. If a package version is in multiple indexes, only look at the entry for the first index"))' \ +'--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"))' \ +'--resolution=[The strategy to use when selecting between the different compatible versions for a given package requirement]: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=[The strategy to use when considering pre-release versions]: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"))' \ +'--fork-strategy=[The strategy to use when selecting multiple versions of a given package across Python versions and platforms]:FORK_STRATEGY:((fewest\:"Optimize for selecting the fewest number of versions for each package. Older versions may be preferred if they are compatible with a wider range of supported Python versions or platforms" +requires-python\:"Optimize for selecting latest supported version of each package, for each supported Python version"))' \ +'*-C+[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \ +'*--config-setting=[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \ +'*--config-settings-package=[Settings to pass to the PEP 517 build backend for a specific package, specified as \`PACKAGE\:KEY=VALUE\` pairs]:CONFIG_SETTINGS_PACKAGE:_default' \ +'*--no-build-isolation-package=[Disable isolation when building source distributions for a specific package]:NO_BUILD_ISOLATION_PACKAGE:_default' \ +'--exclude-newer=[Limit candidate packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER:_default' \ +'*--exclude-newer-package=[Limit candidate packages for a specific package to those that were uploaded prior to the given date]:EXCLUDE_NEWER_PACKAGE:_default' \ +'--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\` directory" +copy\:"Copy packages from the wheel into the \`site-packages\` directory" +hardlink\:"Hard link packages from the wheel into the \`site-packages\` directory" +symlink\:"Symbolically link packages from the wheel into the \`site-packages\` directory"))' \ +'*--no-build-package=[Don'\''t build source distributions for a specific package]:NO_BUILD_PACKAGE:_default' \ +'*--no-binary-package=[Don'\''t install pre-built wheels for a specific package]:NO_BINARY_PACKAGE:_default' \ +'*--refresh-package=[Refresh cached data for a specific package]:REFRESH_PACKAGE:_default' \ +'(--all-packages --package --no-emit-project --no-emit-workspace)--script=[Export the dependencies for the specified PEP 723 Python script, rather than the current project]:SCRIPT:_files' \ +'-p+[The Python interpreter to use during resolution.]:PYTHON:_default' \ +'--python=[The Python interpreter to use during resolution.]:PYTHON:_default' \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'(--package)--all-packages[Export the entire workspace]' \ +'(--extra)--all-extras[Include all optional dependencies]' \ +'--no-all-extras[]' \ +'--dev[Include the development dependency group]' \ +'--no-dev[Disable the development dependency group]' \ +'(--group --all-groups --no-dev)--only-dev[Only include the development dependency group]' \ +'--no-default-groups[Ignore the default dependency groups]' \ +'(--only-group --only-dev)--all-groups[Include dependencies from all dependency groups]' \ +'--no-annotate[Exclude comment annotations indicating the source of each package]' \ +'--annotate[]' \ +'--no-header[Exclude the comment header at the top of the generated output file]' \ +'--header[]' \ +'--no-editable[Export any editable dependencies, including the project and any workspace members, as non-editable]' \ +'--hashes[Include hashes for all dependencies]' \ +'--no-hashes[Omit hashes in the generated output]' \ +'--no-emit-project[Do not emit the current project]' \ +'--no-emit-workspace[Do not emit any workspace members, including the root project]' \ +'(--frozen -U --upgrade)--locked[Assert that the \`uv.lock\` will remain unchanged]' \ +'(--locked -U --upgrade --no-sources)--frozen[Do not update the \`uv.lock\` before exporting]' \ +'--no-index[Ignore the registry index (e.g., PyPI), instead relying on direct URL dependencies and those provided via \`--find-links\`]' \ +'-U[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \ +'--upgrade[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \ +'--no-upgrade[]' \ +'--pre[]' \ +'--no-build-isolation[Disable isolation when building source distributions]' \ +'--build-isolation[]' \ +'--no-sources[Ignore the \`tool.uv.sources\` table when resolving dependencies. Used to lock against the standards-compliant, publishable package metadata, as opposed to using any workspace, Git, URL, or local path sources]' \ +'--no-build[Don'\''t build source distributions]' \ +'--build[]' \ +'--no-binary[Don'\''t install pre-built wheels]' \ +'--binary[]' \ +'(--offline)--refresh[Refresh all cached data]' \ +'(--offline)--no-refresh[]' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +&& ret=0 +;; +(tree) +_arguments "${_arguments_options[@]}" : \ +'-d+[Maximum display depth of the dependency tree]:DEPTH:_default' \ +'--depth=[Maximum display depth of the dependency tree]:DEPTH:_default' \ +'*--prune=[Prune the given package from the display of the dependency tree]:PRUNE:_default' \ +'*--package=[Display only the specified packages]:PACKAGE:_default' \ +'(--only-group --only-dev)*--group=[Include dependencies from the specified dependency group]:GROUP:_default' \ +'*--no-group=[Disable the specified dependency group]:NO_GROUP:_default' \ +'(--group --dev --all-groups)*--only-group=[Only include dependencies from the specified dependency group]:ONLY_GROUP:_default' \ +'*--no-build-package=[Don'\''t build source distributions for a specific package]:NO_BUILD_PACKAGE:_default' \ +'*--no-binary-package=[Don'\''t install pre-built wheels for a specific package]:NO_BINARY_PACKAGE:_default' \ +'*--index=[The URLs to use when resolving dependencies, in addition to the default index]:INDEX:_default' \ +'--default-index=[The URL of the default package index (by default\: )]:DEFAULT_INDEX:_default' \ +'-i+[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: )]:INDEX_URL:_default' \ +'--index-url=[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: )]:INDEX_URL:_default' \ +'*--extra-index-url=[(Deprecated\: use \`--index\` instead) Extra URLs of package indexes to use, in addition to \`--index-url\`]:EXTRA_INDEX_URL:_default' \ +'*-f+[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \ +'*--find-links=[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \ +'*-P+[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \ +'*--upgrade-package=[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \ +'--index-strategy=[The strategy to use when resolving against multiple index URLs]:INDEX_STRATEGY:((first-index\:"Only use results from the first index that returns a match for a given package name" +unsafe-first-match\:"Search for every package name across all indexes, exhausting the versions from the first index before moving on to the next" +unsafe-best-match\:"Search for every package name across all indexes, preferring the "best" version found. If a package version is in multiple indexes, only look at the entry for the first index"))' \ +'--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"))' \ +'--resolution=[The strategy to use when selecting between the different compatible versions for a given package requirement]: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=[The strategy to use when considering pre-release versions]: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"))' \ +'--fork-strategy=[The strategy to use when selecting multiple versions of a given package across Python versions and platforms]:FORK_STRATEGY:((fewest\:"Optimize for selecting the fewest number of versions for each package. Older versions may be preferred if they are compatible with a wider range of supported Python versions or platforms" +requires-python\:"Optimize for selecting latest supported version of each package, for each supported Python version"))' \ +'*-C+[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \ +'*--config-setting=[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \ +'*--config-settings-package=[Settings to pass to the PEP 517 build backend for a specific package, specified as \`PACKAGE\:KEY=VALUE\` pairs]:CONFIG_SETTINGS_PACKAGE:_default' \ +'*--no-build-isolation-package=[Disable isolation when building source distributions for a specific package]:NO_BUILD_ISOLATION_PACKAGE:_default' \ +'--exclude-newer=[Limit candidate packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER:_default' \ +'*--exclude-newer-package=[Limit candidate packages for a specific package to those that were uploaded prior to the given date]:EXCLUDE_NEWER_PACKAGE:_default' \ +'--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\` directory" +copy\:"Copy packages from the wheel into the \`site-packages\` directory" +hardlink\:"Hard link packages from the wheel into the \`site-packages\` directory" +symlink\:"Symbolically link packages from the wheel into the \`site-packages\` directory"))' \ +'--script=[Show the dependency tree the specified PEP 723 Python script, rather than the current project]:SCRIPT:_files' \ +'(--universal)--python-version=[The Python version to use when filtering the tree]:PYTHON_VERSION:_default' \ +'(--universal)--python-platform=[The platform to use when filtering the tree]:PYTHON_PLATFORM:((windows\:"An alias for \`x86_64-pc-windows-msvc\`, the default target for Windows" +linux\:"An alias for \`x86_64-unknown-linux-gnu\`, the default target for Linux" +macos\:"An alias for \`aarch64-apple-darwin\`, the default target for macOS" +x86_64-pc-windows-msvc\:"A 64-bit x86 Windows target" +i686-pc-windows-msvc\:"A 32-bit x86 Windows target" +x86_64-unknown-linux-gnu\:"An x86 Linux target. Equivalent to \`x86_64-manylinux_2_28\`" +aarch64-apple-darwin\:"An ARM-based macOS target, as seen on Apple Silicon devices" +x86_64-apple-darwin\:"An x86 macOS target" +aarch64-unknown-linux-gnu\:"An ARM64 Linux target. Equivalent to \`aarch64-manylinux_2_28\`" +aarch64-unknown-linux-musl\:"An ARM64 Linux target" +x86_64-unknown-linux-musl\:"An \`x86_64\` Linux target" +x86_64-manylinux2014\:"An \`x86_64\` target for the \`manylinux2014\` platform. Equivalent to \`x86_64-manylinux_2_17\`" +x86_64-manylinux_2_17\:"An \`x86_64\` target for the \`manylinux_2_17\` platform" +x86_64-manylinux_2_28\:"An \`x86_64\` target for the \`manylinux_2_28\` platform" +x86_64-manylinux_2_31\:"An \`x86_64\` target for the \`manylinux_2_31\` platform" +x86_64-manylinux_2_32\:"An \`x86_64\` target for the \`manylinux_2_32\` platform" +x86_64-manylinux_2_33\:"An \`x86_64\` target for the \`manylinux_2_33\` platform" +x86_64-manylinux_2_34\:"An \`x86_64\` target for the \`manylinux_2_34\` platform" +x86_64-manylinux_2_35\:"An \`x86_64\` target for the \`manylinux_2_35\` platform" +x86_64-manylinux_2_36\:"An \`x86_64\` target for the \`manylinux_2_36\` platform" +x86_64-manylinux_2_37\:"An \`x86_64\` target for the \`manylinux_2_37\` platform" +x86_64-manylinux_2_38\:"An \`x86_64\` target for the \`manylinux_2_38\` platform" +x86_64-manylinux_2_39\:"An \`x86_64\` target for the \`manylinux_2_39\` platform" +x86_64-manylinux_2_40\:"An \`x86_64\` target for the \`manylinux_2_40\` platform" +aarch64-manylinux2014\:"An ARM64 target for the \`manylinux2014\` platform. Equivalent to \`aarch64-manylinux_2_17\`" +aarch64-manylinux_2_17\:"An ARM64 target for the \`manylinux_2_17\` platform" +aarch64-manylinux_2_28\:"An ARM64 target for the \`manylinux_2_28\` platform" +aarch64-manylinux_2_31\:"An ARM64 target for the \`manylinux_2_31\` platform" +aarch64-manylinux_2_32\:"An ARM64 target for the \`manylinux_2_32\` platform" +aarch64-manylinux_2_33\:"An ARM64 target for the \`manylinux_2_33\` platform" +aarch64-manylinux_2_34\:"An ARM64 target for the \`manylinux_2_34\` platform" +aarch64-manylinux_2_35\:"An ARM64 target for the \`manylinux_2_35\` platform" +aarch64-manylinux_2_36\:"An ARM64 target for the \`manylinux_2_36\` platform" +aarch64-manylinux_2_37\:"An ARM64 target for the \`manylinux_2_37\` platform" +aarch64-manylinux_2_38\:"An ARM64 target for the \`manylinux_2_38\` platform" +aarch64-manylinux_2_39\:"An ARM64 target for the \`manylinux_2_39\` platform" +aarch64-manylinux_2_40\:"An ARM64 target for the \`manylinux_2_40\` platform" +wasm32-pyodide2024\:"A wasm32 target using the Pyodide 2024 platform. Meant for use with Python 3.12"))' \ +'-p+[The Python interpreter to use for locking and filtering.]:PYTHON:_default' \ +'--python=[The Python interpreter to use for locking and filtering.]:PYTHON:_default' \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'--universal[Show a platform-independent dependency tree]' \ +'--no-dedupe[Do not de-duplicate repeated dependencies. Usually, when a package has already displayed its dependencies, further occurrences will not re-display its dependencies, and will include a (*) to indicate it has already been shown. This flag will cause those duplicates to be repeated]' \ +'--invert[Show the reverse dependencies for the given package. This flag will invert the tree and display the packages that depend on the given package]' \ +'--outdated[Show the latest available version of each package in the tree]' \ +'--dev[Include the development dependency group]' \ +'(--group --all-groups --no-dev)--only-dev[Only include the development dependency group]' \ +'--no-dev[Disable the development dependency group]' \ +'--no-default-groups[Ignore the default dependency groups]' \ +'(--only-group --only-dev)--all-groups[Include dependencies from all dependency groups]' \ +'(--frozen -U --upgrade)--locked[Assert that the \`uv.lock\` will remain unchanged]' \ +'(--locked -U --upgrade --no-sources)--frozen[Display the requirements without locking the project]' \ +'--no-build[Don'\''t build source distributions]' \ +'--build[]' \ +'--no-binary[Don'\''t install pre-built wheels]' \ +'--binary[]' \ +'--no-index[Ignore the registry index (e.g., PyPI), instead relying on direct URL dependencies and those provided via \`--find-links\`]' \ +'-U[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \ +'--upgrade[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \ +'--no-upgrade[]' \ +'--pre[]' \ +'--no-build-isolation[Disable isolation when building source distributions]' \ +'--build-isolation[]' \ +'--no-sources[Ignore the \`tool.uv.sources\` table when resolving dependencies. Used to lock against the standards-compliant, publishable package metadata, as opposed to using any workspace, Git, URL, or local path sources]' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +&& ret=0 +;; +(tool) +_arguments "${_arguments_options[@]}" : \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +":: :_uv__tool_commands" \ +"*::: :->tool" \ +&& ret=0 + + case $state in + (tool) + words=($line[1] "${words[@]}") + (( CURRENT += 1 )) + curcontext="${curcontext%:*:*}:uv-tool-command-$line[1]:" + case $line[1] in + (run) +_arguments "${_arguments_options[@]}" : \ +'--from=[Use the given package to provide the command]:FROM:_default' \ +'*-w+[Run with the given packages installed]:WITH:_default' \ +'*--with=[Run with the given packages installed]:WITH:_default' \ +'*--with-editable=[Run with the given packages installed in editable mode]:WITH_EDITABLE:_default' \ +'*--with-requirements=[Run with all packages listed in the given \`requirements.txt\` files]:WITH_REQUIREMENTS:_default' \ +'*-c+[Constrain versions using the given requirements files]:CONSTRAINTS:_default' \ +'*--constraints=[Constrain versions using the given requirements files]:CONSTRAINTS:_default' \ +'*-b+[Constrain build dependencies using the given requirements files when building source distributions]:BUILD_CONSTRAINTS:_default' \ +'*--build-constraints=[Constrain build dependencies using the given requirements files when building source distributions]:BUILD_CONSTRAINTS:_default' \ +'*--overrides=[Override versions using the given requirements files]:OVERRIDES:_default' \ +'*--env-file=[Load environment variables from a \`.env\` file]:ENV_FILE:_files' \ +'*--index=[The URLs to use when resolving dependencies, in addition to the default index]:INDEX:_default' \ +'--default-index=[The URL of the default package index (by default\: )]:DEFAULT_INDEX:_default' \ +'-i+[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: )]:INDEX_URL:_default' \ +'--index-url=[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: )]:INDEX_URL:_default' \ +'*--extra-index-url=[(Deprecated\: use \`--index\` instead) Extra URLs of package indexes to use, in addition to \`--index-url\`]:EXTRA_INDEX_URL:_default' \ +'*-f+[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \ +'*--find-links=[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \ +'*-P+[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \ +'*--upgrade-package=[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \ +'*--reinstall-package=[Reinstall a specific package, regardless of whether it'\''s already installed. Implies \`--refresh-package\`]:REINSTALL_PACKAGE:_default' \ +'--index-strategy=[The strategy to use when resolving against multiple index URLs]:INDEX_STRATEGY:((first-index\:"Only use results from the first index that returns a match for a given package name" +unsafe-first-match\:"Search for every package name across all indexes, exhausting the versions from the first index before moving on to the next" +unsafe-best-match\:"Search for every package name across all indexes, preferring the "best" version found. If a package version is in multiple indexes, only look at the entry for the first index"))' \ +'--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"))' \ +'--resolution=[The strategy to use when selecting between the different compatible versions for a given package requirement]: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=[The strategy to use when considering pre-release versions]: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"))' \ +'--fork-strategy=[The strategy to use when selecting multiple versions of a given package across Python versions and platforms]:FORK_STRATEGY:((fewest\:"Optimize for selecting the fewest number of versions for each package. Older versions may be preferred if they are compatible with a wider range of supported Python versions or platforms" +requires-python\:"Optimize for selecting latest supported version of each package, for each supported Python version"))' \ +'*-C+[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \ +'*--config-setting=[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \ +'*--config-settings-package=[Settings to pass to the PEP 517 build backend for a specific package, specified as \`PACKAGE\:KEY=VALUE\` pairs]:CONFIG_SETTINGS_PACKAGE:_default' \ +'*--no-build-isolation-package=[Disable isolation when building source distributions for a specific package]:NO_BUILD_ISOLATION_PACKAGE:_default' \ +'--exclude-newer=[Limit candidate packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER:_default' \ +'*--exclude-newer-package=[Limit candidate packages for specific packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER_PACKAGE:_default' \ +'--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\` directory" +copy\:"Copy packages from the wheel into the \`site-packages\` directory" +hardlink\:"Hard link packages from the wheel into the \`site-packages\` directory" +symlink\:"Symbolically link packages from the wheel into the \`site-packages\` directory"))' \ +'*--no-build-package=[Don'\''t build source distributions for a specific package]:NO_BUILD_PACKAGE:_default' \ +'*--no-binary-package=[Don'\''t install pre-built wheels for a specific package]:NO_BINARY_PACKAGE:_default' \ +'*--refresh-package=[Refresh cached data for a specific package]:REFRESH_PACKAGE:_default' \ +'-p+[The Python interpreter to use to build the run environment.]:PYTHON:_default' \ +'--python=[The Python interpreter to use to build the run environment.]:PYTHON:_default' \ +'--generate-shell-completion=[]:GENERATE_SHELL_COMPLETION:(bash elvish fish nushell powershell zsh)' \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'--isolated[Run the tool in an isolated virtual environment, ignoring any already-installed tools]' \ +'--no-env-file[Avoid reading environment variables from a \`.env\` file]' \ +'--no-index[Ignore the registry index (e.g., PyPI), instead relying on direct URL dependencies and those provided via \`--find-links\`]' \ +'-U[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \ +'--upgrade[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \ +'--no-upgrade[]' \ +'--reinstall[Reinstall all packages, regardless of whether they'\''re already installed. Implies \`--refresh\`]' \ +'--no-reinstall[]' \ +'--pre[]' \ +'--no-build-isolation[Disable isolation when building source distributions]' \ +'--build-isolation[]' \ +'--compile-bytecode[Compile Python files to bytecode after installation]' \ +'--no-compile-bytecode[]' \ +'--no-sources[Ignore the \`tool.uv.sources\` table when resolving dependencies. Used to lock against the standards-compliant, publishable package metadata, as opposed to using any workspace, Git, URL, or local path sources]' \ +'--no-build[Don'\''t build source distributions]' \ +'--build[]' \ +'--no-binary[Don'\''t install pre-built wheels]' \ +'--binary[]' \ +'(--offline)--refresh[Refresh all cached data]' \ +'(--offline)--no-refresh[]' \ +'--show-resolution[Whether to show resolver and installer output from any environment modifications]' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +"*::external_command:_default" \ +&& ret=0 +;; +(uvx) +_arguments "${_arguments_options[@]}" : \ +'--from=[Use the given package to provide the command]:FROM:_default' \ +'*-w+[Run with the given packages installed]:WITH:_default' \ +'*--with=[Run with the given packages installed]:WITH:_default' \ +'*--with-editable=[Run with the given packages installed in editable mode]:WITH_EDITABLE:_default' \ +'*--with-requirements=[Run with all packages listed in the given \`requirements.txt\` files]:WITH_REQUIREMENTS:_default' \ +'*-c+[Constrain versions using the given requirements files]:CONSTRAINTS:_default' \ +'*--constraints=[Constrain versions using the given requirements files]:CONSTRAINTS:_default' \ +'*-b+[Constrain build dependencies using the given requirements files when building source distributions]:BUILD_CONSTRAINTS:_default' \ +'*--build-constraints=[Constrain build dependencies using the given requirements files when building source distributions]:BUILD_CONSTRAINTS:_default' \ +'*--overrides=[Override versions using the given requirements files]:OVERRIDES:_default' \ +'*--env-file=[Load environment variables from a \`.env\` file]:ENV_FILE:_files' \ +'*--index=[The URLs to use when resolving dependencies, in addition to the default index]:INDEX:_default' \ +'--default-index=[The URL of the default package index (by default\: )]:DEFAULT_INDEX:_default' \ +'-i+[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: )]:INDEX_URL:_default' \ +'--index-url=[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: )]:INDEX_URL:_default' \ +'*--extra-index-url=[(Deprecated\: use \`--index\` instead) Extra URLs of package indexes to use, in addition to \`--index-url\`]:EXTRA_INDEX_URL:_default' \ +'*-f+[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \ +'*--find-links=[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \ +'*-P+[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \ +'*--upgrade-package=[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \ +'*--reinstall-package=[Reinstall a specific package, regardless of whether it'\''s already installed. Implies \`--refresh-package\`]:REINSTALL_PACKAGE:_default' \ +'--index-strategy=[The strategy to use when resolving against multiple index URLs]:INDEX_STRATEGY:((first-index\:"Only use results from the first index that returns a match for a given package name" +unsafe-first-match\:"Search for every package name across all indexes, exhausting the versions from the first index before moving on to the next" +unsafe-best-match\:"Search for every package name across all indexes, preferring the "best" version found. If a package version is in multiple indexes, only look at the entry for the first index"))' \ +'--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"))' \ +'--resolution=[The strategy to use when selecting between the different compatible versions for a given package requirement]: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=[The strategy to use when considering pre-release versions]: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"))' \ +'--fork-strategy=[The strategy to use when selecting multiple versions of a given package across Python versions and platforms]:FORK_STRATEGY:((fewest\:"Optimize for selecting the fewest number of versions for each package. Older versions may be preferred if they are compatible with a wider range of supported Python versions or platforms" +requires-python\:"Optimize for selecting latest supported version of each package, for each supported Python version"))' \ +'*-C+[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \ +'*--config-setting=[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \ +'*--config-settings-package=[Settings to pass to the PEP 517 build backend for a specific package, specified as \`PACKAGE\:KEY=VALUE\` pairs]:CONFIG_SETTINGS_PACKAGE:_default' \ +'*--no-build-isolation-package=[Disable isolation when building source distributions for a specific package]:NO_BUILD_ISOLATION_PACKAGE:_default' \ +'--exclude-newer=[Limit candidate packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER:_default' \ +'*--exclude-newer-package=[Limit candidate packages for specific packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER_PACKAGE:_default' \ +'--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\` directory" +copy\:"Copy packages from the wheel into the \`site-packages\` directory" +hardlink\:"Hard link packages from the wheel into the \`site-packages\` directory" +symlink\:"Symbolically link packages from the wheel into the \`site-packages\` directory"))' \ +'*--no-build-package=[Don'\''t build source distributions for a specific package]:NO_BUILD_PACKAGE:_default' \ +'*--no-binary-package=[Don'\''t install pre-built wheels for a specific package]:NO_BINARY_PACKAGE:_default' \ +'*--refresh-package=[Refresh cached data for a specific package]:REFRESH_PACKAGE:_default' \ +'-p+[The Python interpreter to use to build the run environment.]:PYTHON:_default' \ +'--python=[The Python interpreter to use to build the run environment.]:PYTHON:_default' \ +'--generate-shell-completion=[]:GENERATE_SHELL_COMPLETION:(bash elvish fish nushell powershell zsh)' \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'--isolated[Run the tool in an isolated virtual environment, ignoring any already-installed tools]' \ +'--no-env-file[Avoid reading environment variables from a \`.env\` file]' \ +'--no-index[Ignore the registry index (e.g., PyPI), instead relying on direct URL dependencies and those provided via \`--find-links\`]' \ +'-U[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \ +'--upgrade[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \ +'--no-upgrade[]' \ +'--reinstall[Reinstall all packages, regardless of whether they'\''re already installed. Implies \`--refresh\`]' \ +'--no-reinstall[]' \ +'--pre[]' \ +'--no-build-isolation[Disable isolation when building source distributions]' \ +'--build-isolation[]' \ +'--compile-bytecode[Compile Python files to bytecode after installation]' \ +'--no-compile-bytecode[]' \ +'--no-sources[Ignore the \`tool.uv.sources\` table when resolving dependencies. Used to lock against the standards-compliant, publishable package metadata, as opposed to using any workspace, Git, URL, or local path sources]' \ +'--no-build[Don'\''t build source distributions]' \ +'--build[]' \ +'--no-binary[Don'\''t install pre-built wheels]' \ +'--binary[]' \ +'(--offline)--refresh[Refresh all cached data]' \ +'(--offline)--no-refresh[]' \ +'--show-resolution[Whether to show resolver and installer output from any environment modifications]' \ +'-V[Display the uvx version]' \ +'--version[Display the uvx version]' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +"*::external_command:_default" \ +&& ret=0 +;; +(install) +_arguments "${_arguments_options[@]}" : \ +'--from=[The package to install commands from]:FROM:_default' \ +'*-w+[Include the following additional requirements]:WITH:_default' \ +'*--with=[Include the following additional requirements]:WITH:_default' \ +'*--with-requirements=[Include all requirements listed in the given \`requirements.txt\` files]:WITH_REQUIREMENTS:_default' \ +'*--with-editable=[Include the given packages in editable mode]:WITH_EDITABLE:_default' \ +'*--with-executables-from=[Install executables from the following packages]:WITH_EXECUTABLES_FROM:_default' \ +'*-c+[Constrain versions using the given requirements files]:CONSTRAINTS:_default' \ +'*--constraints=[Constrain versions using the given requirements files]:CONSTRAINTS:_default' \ +'*--overrides=[Override versions using the given requirements files]:OVERRIDES:_default' \ +'*-b+[Constrain build dependencies using the given requirements files when building source distributions]:BUILD_CONSTRAINTS:_default' \ +'*--build-constraints=[Constrain build dependencies using the given requirements files when building source distributions]:BUILD_CONSTRAINTS:_default' \ +'*--index=[The URLs to use when resolving dependencies, in addition to the default index]:INDEX:_default' \ +'--default-index=[The URL of the default package index (by default\: )]:DEFAULT_INDEX:_default' \ +'-i+[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: )]:INDEX_URL:_default' \ +'--index-url=[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: )]:INDEX_URL:_default' \ +'*--extra-index-url=[(Deprecated\: use \`--index\` instead) Extra URLs of package indexes to use, in addition to \`--index-url\`]:EXTRA_INDEX_URL:_default' \ +'*-f+[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \ +'*--find-links=[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \ +'*-P+[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \ +'*--upgrade-package=[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \ +'*--reinstall-package=[Reinstall a specific package, regardless of whether it'\''s already installed. Implies \`--refresh-package\`]:REINSTALL_PACKAGE:_default' \ +'--index-strategy=[The strategy to use when resolving against multiple index URLs]:INDEX_STRATEGY:((first-index\:"Only use results from the first index that returns a match for a given package name" +unsafe-first-match\:"Search for every package name across all indexes, exhausting the versions from the first index before moving on to the next" +unsafe-best-match\:"Search for every package name across all indexes, preferring the "best" version found. If a package version is in multiple indexes, only look at the entry for the first index"))' \ +'--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"))' \ +'--resolution=[The strategy to use when selecting between the different compatible versions for a given package requirement]: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=[The strategy to use when considering pre-release versions]: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"))' \ +'--fork-strategy=[The strategy to use when selecting multiple versions of a given package across Python versions and platforms]:FORK_STRATEGY:((fewest\:"Optimize for selecting the fewest number of versions for each package. Older versions may be preferred if they are compatible with a wider range of supported Python versions or platforms" +requires-python\:"Optimize for selecting latest supported version of each package, for each supported Python version"))' \ +'*-C+[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \ +'*--config-setting=[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \ +'*--config-settings-package=[Settings to pass to the PEP 517 build backend for a specific package, specified as \`PACKAGE\:KEY=VALUE\` pairs]:CONFIG_SETTINGS_PACKAGE:_default' \ +'*--no-build-isolation-package=[Disable isolation when building source distributions for a specific package]:NO_BUILD_ISOLATION_PACKAGE:_default' \ +'--exclude-newer=[Limit candidate packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER:_default' \ +'*--exclude-newer-package=[Limit candidate packages for specific packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER_PACKAGE:_default' \ +'--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\` directory" +copy\:"Copy packages from the wheel into the \`site-packages\` directory" +hardlink\:"Hard link packages from the wheel into the \`site-packages\` directory" +symlink\:"Symbolically link packages from the wheel into the \`site-packages\` directory"))' \ +'*--no-build-package=[Don'\''t build source distributions for a specific package]:NO_BUILD_PACKAGE:_default' \ +'*--no-binary-package=[Don'\''t install pre-built wheels for a specific package]:NO_BINARY_PACKAGE:_default' \ +'*--refresh-package=[Refresh cached data for a specific package]:REFRESH_PACKAGE:_default' \ +'-p+[The Python interpreter to use to build the tool environment.]:PYTHON:_default' \ +'--python=[The Python interpreter to use to build the tool environment.]:PYTHON:_default' \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'-e[Install the target package in editable mode, such that changes in the package'\''s source directory are reflected without reinstallation]' \ +'--editable[Install the target package in editable mode, such that changes in the package'\''s source directory are reflected without reinstallation]' \ +'--no-index[Ignore the registry index (e.g., PyPI), instead relying on direct URL dependencies and those provided via \`--find-links\`]' \ +'-U[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \ +'--upgrade[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \ +'--no-upgrade[]' \ +'--reinstall[Reinstall all packages, regardless of whether they'\''re already installed. Implies \`--refresh\`]' \ +'--no-reinstall[]' \ +'--pre[]' \ +'--no-build-isolation[Disable isolation when building source distributions]' \ +'--build-isolation[]' \ +'--compile-bytecode[Compile Python files to bytecode after installation]' \ +'--no-compile-bytecode[]' \ +'--no-sources[Ignore the \`tool.uv.sources\` table when resolving dependencies. Used to lock against the standards-compliant, publishable package metadata, as opposed to using any workspace, Git, URL, or local path sources]' \ +'--no-build[Don'\''t build source distributions]' \ +'--build[]' \ +'--no-binary[Don'\''t install pre-built wheels]' \ +'--binary[]' \ +'(--offline)--refresh[Refresh all cached data]' \ +'(--offline)--no-refresh[]' \ +'--force[Force installation of the tool]' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +':package -- The package to install commands from:_default' \ +&& ret=0 +;; +(upgrade) +_arguments "${_arguments_options[@]}" : \ +'-p+[Upgrade a tool, and specify it to use the given Python interpreter to build its environment. Use with \`--all\` to apply to all tools.]:PYTHON:_default' \ +'--python=[Upgrade a tool, and specify it to use the given Python interpreter to build its environment. Use with \`--all\` to apply to all tools.]:PYTHON:_default' \ +'*-P+[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \ +'*--upgrade-package=[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \ +'*--index=[The URLs to use when resolving dependencies, in addition to the default index]:INDEX:_default' \ +'--default-index=[The URL of the default package index (by default\: )]:DEFAULT_INDEX:_default' \ +'-i+[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: )]:INDEX_URL:_default' \ +'--index-url=[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: )]:INDEX_URL:_default' \ +'*--extra-index-url=[(Deprecated\: use \`--index\` instead) Extra URLs of package indexes to use, in addition to \`--index-url\`]:EXTRA_INDEX_URL:_default' \ +'*-f+[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \ +'*--find-links=[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \ +'*--reinstall-package=[Reinstall a specific package, regardless of whether it'\''s already installed. Implies \`--refresh-package\`]:REINSTALL_PACKAGE:_default' \ +'--index-strategy=[The strategy to use when resolving against multiple index URLs]:INDEX_STRATEGY:((first-index\:"Only use results from the first index that returns a match for a given package name" +unsafe-first-match\:"Search for every package name across all indexes, exhausting the versions from the first index before moving on to the next" +unsafe-best-match\:"Search for every package name across all indexes, preferring the "best" version found. If a package version is in multiple indexes, only look at the entry for the first index"))' \ +'--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"))' \ +'--resolution=[The strategy to use when selecting between the different compatible versions for a given package requirement]: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=[The strategy to use when considering pre-release versions]: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"))' \ +'--fork-strategy=[The strategy to use when selecting multiple versions of a given package across Python versions and platforms]:FORK_STRATEGY:((fewest\:"Optimize for selecting the fewest number of versions for each package. Older versions may be preferred if they are compatible with a wider range of supported Python versions or platforms" +requires-python\:"Optimize for selecting latest supported version of each package, for each supported Python version"))' \ +'*-C+[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \ +'*--config-setting=[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \ +'*--config-setting-package=[Settings to pass to the PEP 517 build backend for a specific package, specified as \`PACKAGE\:KEY=VALUE\` pairs]:CONFIG_SETTING_PACKAGE:_default' \ +'*--no-build-isolation-package=[Disable isolation when building source distributions for a specific package]:NO_BUILD_ISOLATION_PACKAGE:_default' \ +'--exclude-newer=[Limit candidate packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER:_default' \ +'*--exclude-newer-package=[Limit candidate packages for specific packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER_PACKAGE:_default' \ +'--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\` directory" +copy\:"Copy packages from the wheel into the \`site-packages\` directory" +hardlink\:"Hard link packages from the wheel into the \`site-packages\` directory" +symlink\:"Symbolically link packages from the wheel into the \`site-packages\` directory"))' \ +'*--no-build-package=[Don'\''t build source distributions for a specific package]:NO_BUILD_PACKAGE:_default' \ +'*--no-binary-package=[Don'\''t install pre-built wheels for a specific package]:NO_BINARY_PACKAGE:_default' \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'()--all[Upgrade all tools]' \ +'-U[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \ +'--upgrade[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \ +'--no-index[Ignore the registry index (e.g., PyPI), instead relying on direct URL dependencies and those provided via \`--find-links\`]' \ +'--reinstall[Reinstall all packages, regardless of whether they'\''re already installed. Implies \`--refresh\`]' \ +'--no-reinstall[]' \ +'--pre[]' \ +'--no-build-isolation[Disable isolation when building source distributions]' \ +'--build-isolation[]' \ +'--compile-bytecode[Compile Python files to bytecode after installation]' \ +'--no-compile-bytecode[]' \ +'--no-sources[Ignore the \`tool.uv.sources\` table when resolving dependencies. Used to lock against the standards-compliant, publishable package metadata, as opposed to using any workspace, Git, URL, or local path sources]' \ +'--no-build[Don'\''t build source distributions]' \ +'--build[]' \ +'--no-binary[Don'\''t install pre-built wheels]' \ +'--binary[]' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +'*::name -- The name of the tool to upgrade, along with an optional version specifier:_default' \ +&& ret=0 +;; +(list) +_arguments "${_arguments_options[@]}" : \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'--show-paths[Whether to display the path to each tool environment and installed executable]' \ +'--show-version-specifiers[Whether to display the version specifier(s) used to install each tool]' \ +'--show-with[Whether to display the additional requirements installed with each tool]' \ +'--show-extras[Whether to display the extra requirements installed with each tool]' \ +'--no-python-downloads[]' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +&& ret=0 +;; +(uninstall) +_arguments "${_arguments_options[@]}" : \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'()--all[Uninstall all tools]' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +'*::name -- The name of the tool to uninstall:_default' \ +&& ret=0 +;; +(update-shell) +_arguments "${_arguments_options[@]}" : \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +&& ret=0 +;; +(dir) +_arguments "${_arguments_options[@]}" : \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'--bin[Show the directory into which \`uv tool\` will install executables.]' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +&& ret=0 +;; + esac + ;; +esac +;; +(python) +_arguments "${_arguments_options[@]}" : \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +":: :_uv__python_commands" \ +"*::: :->python" \ +&& ret=0 + + case $state in + (python) + words=($line[1] "${words[@]}") + (( CURRENT += 1 )) + curcontext="${curcontext%:*:*}:uv-python-command-$line[1]:" + case $line[1] in + (list) +_arguments "${_arguments_options[@]}" : \ +'--output-format=[Select the output format]:OUTPUT_FORMAT:((text\:"Plain text (for humans)" +json\:"JSON (for computers)"))' \ +'--python-downloads-json-url=[URL pointing to JSON of custom Python installations]:PYTHON_DOWNLOADS_JSON_URL:_default' \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'--all-versions[List all Python versions, including old patch versions]' \ +'--all-platforms[List Python downloads for all platforms]' \ +'--all-arches[List Python downloads for all architectures]' \ +'(--only-downloads)--only-installed[Only show installed Python versions]' \ +'(--only-installed)--only-downloads[Only show available Python downloads]' \ +'--show-urls[Show the URLs of available Python downloads]' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +'::request -- A Python request to filter by:_default' \ +&& ret=0 +;; +(install) +_arguments "${_arguments_options[@]}" : \ +'-i+[The directory to store the Python installation in]:INSTALL_DIR:_files' \ +'--install-dir=[The directory to store the Python installation in]:INSTALL_DIR:_files' \ +'--mirror=[Set the URL to use as the source for downloading Python installations]:MIRROR:_default' \ +'--pypy-mirror=[Set the URL to use as the source for downloading PyPy installations]:PYPY_MIRROR:_default' \ +'--python-downloads-json-url=[URL pointing to JSON of custom Python installations]:PYTHON_DOWNLOADS_JSON_URL:_default' \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'--bin[Install a Python executable into the \`bin\` directory]' \ +'(--default)--no-bin[Do not install a Python executable into the \`bin\` directory]' \ +'--registry[Register the Python installation in the Windows registry]' \ +'--no-registry[Do not register the Python installation in the Windows registry]' \ +'-r[Reinstall the requested Python version, if it'\''s already installed]' \ +'--reinstall[Reinstall the requested Python version, if it'\''s already installed]' \ +'-f[Replace existing Python executables during installation]' \ +'--force[Replace existing Python executables during installation]' \ +'(--no-bin)--default[Use as the default Python version]' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +'*::targets -- The Python version(s) to install:_default' \ +&& ret=0 +;; +(upgrade) +_arguments "${_arguments_options[@]}" : \ +'-i+[The directory Python installations are stored in]:INSTALL_DIR:_files' \ +'--install-dir=[The directory Python installations are stored in]:INSTALL_DIR:_files' \ +'--mirror=[Set the URL to use as the source for downloading Python installations]:MIRROR:_default' \ +'--pypy-mirror=[Set the URL to use as the source for downloading PyPy installations]:PYPY_MIRROR:_default' \ +'--python-downloads-json-url=[URL pointing to JSON of custom Python installations]:PYTHON_DOWNLOADS_JSON_URL:_default' \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +'*::targets -- The Python minor version(s) to upgrade:_default' \ +&& ret=0 +;; +(find) +_arguments "${_arguments_options[@]}" : \ +'(--no-project --system --no-system)--script=[Find the environment for a Python script, rather than the current project]:SCRIPT:_files' \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'--no-project[Avoid discovering a project or workspace]' \ +'--system[Only find system Python interpreters]' \ +'--no-system[]' \ +'--show-version[Show the Python version that would be used instead of the path to the interpreter]' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +'::request -- The Python request:_default' \ +&& ret=0 +;; +(pin) +_arguments "${_arguments_options[@]}" : \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'--resolved[Write the resolved Python interpreter path instead of the request]' \ +'--no-resolved[]' \ +'--no-project[Avoid validating the Python pin is compatible with the project or workspace]' \ +'--global[Update the global Python version pin]' \ +'(--resolved)--rm[Remove the Python version pin]' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +'::request -- The Python version request:_default' \ +&& ret=0 +;; +(dir) +_arguments "${_arguments_options[@]}" : \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'--bin[Show the directory into which \`uv python\` will install Python executables.]' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +&& ret=0 +;; +(uninstall) +_arguments "${_arguments_options[@]}" : \ +'-i+[The directory where the Python was installed]:INSTALL_DIR:_files' \ +'--install-dir=[The directory where the Python was installed]:INSTALL_DIR:_files' \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'()--all[Uninstall all managed Python versions]' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +'*::targets -- The Python version(s) to uninstall:_default' \ +&& ret=0 +;; +(update-shell) +_arguments "${_arguments_options[@]}" : \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +&& ret=0 +;; + esac + ;; +esac +;; +(pip) +_arguments "${_arguments_options[@]}" : \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +":: :_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]:CONSTRAINTS:_default' \ +'*--constraints=[Constrain versions using the given requirements files]:CONSTRAINTS:_default' \ +'*--overrides=[Override versions using the given requirements files]:OVERRIDES:_default' \ +'*-b+[Constrain build dependencies using the given requirements files when building source distributions]:BUILD_CONSTRAINTS:_default' \ +'*--build-constraints=[Constrain build dependencies using the given requirements files when building source distributions]:BUILD_CONSTRAINTS:_default' \ +'(--all-extras)*--extra=[Include optional dependencies from the specified extra name; may be provided more than once]:EXTRA:_default' \ +'*--group=[Install the specified dependency group from a \`pyproject.toml\`]:GROUP:_default' \ +'*--index=[The URLs to use when resolving dependencies, in addition to the default index]:INDEX:_default' \ +'--default-index=[The URL of the default package index (by default\: )]:DEFAULT_INDEX:_default' \ +'-i+[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: )]:INDEX_URL:_default' \ +'--index-url=[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: )]:INDEX_URL:_default' \ +'*--extra-index-url=[(Deprecated\: use \`--index\` instead) Extra URLs of package indexes to use, in addition to \`--index-url\`]:EXTRA_INDEX_URL:_default' \ +'*-f+[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \ +'*--find-links=[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \ +'*-P+[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \ +'*--upgrade-package=[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \ +'--index-strategy=[The strategy to use when resolving against multiple index URLs]:INDEX_STRATEGY:((first-index\:"Only use results from the first index that returns a match for a given package name" +unsafe-first-match\:"Search for every package name across all indexes, exhausting the versions from the first index before moving on to the next" +unsafe-best-match\:"Search for every package name across all indexes, preferring the "best" version found. If a package version is in multiple indexes, only look at the entry for the first index"))' \ +'--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"))' \ +'--resolution=[The strategy to use when selecting between the different compatible versions for a given package requirement]: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=[The strategy to use when considering pre-release versions]: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"))' \ +'--fork-strategy=[The strategy to use when selecting multiple versions of a given package across Python versions and platforms]:FORK_STRATEGY:((fewest\:"Optimize for selecting the fewest number of versions for each package. Older versions may be preferred if they are compatible with a wider range of supported Python versions or platforms" +requires-python\:"Optimize for selecting latest supported version of each package, for each supported Python version"))' \ +'*-C+[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \ +'*--config-setting=[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \ +'*--config-settings-package=[Settings to pass to the PEP 517 build backend for a specific package, specified as \`PACKAGE\:KEY=VALUE\` pairs]:CONFIG_SETTINGS_PACKAGE:_default' \ +'*--no-build-isolation-package=[Disable isolation when building source distributions for a specific package]:NO_BUILD_ISOLATION_PACKAGE:_default' \ +'--exclude-newer=[Limit candidate packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER:_default' \ +'*--exclude-newer-package=[Limit candidate packages for a specific package to those that were uploaded prior to the given date]:EXCLUDE_NEWER_PACKAGE:_default' \ +'--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\` directory" +copy\:"Copy packages from the wheel into the \`site-packages\` directory" +hardlink\:"Hard link packages from the wheel into the \`site-packages\` directory" +symlink\:"Symbolically link packages from the wheel into the \`site-packages\` directory"))' \ +'*--refresh-package=[Refresh cached data for a specific package]:REFRESH_PACKAGE:_default' \ +'-o+[Write the compiled requirements to the given \`requirements.txt\` or \`pylock.toml\` file]:OUTPUT_FILE:_files' \ +'--output-file=[Write the compiled requirements to the given \`requirements.txt\` or \`pylock.toml\` file]:OUTPUT_FILE:_files' \ +'--format=[The format in which the resolution should be output]:FORMAT:((requirements.txt\:"Export in \`requirements.txt\` format" +pylock.toml\:"Export in \`pylock.toml\` format"))' \ +'--annotation-style=[The style of the annotation comments included in the output file, used to 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=[The header comment to include at the top of the output file generated by \`uv pip compile\`]:CUSTOM_COMPILE_COMMAND:_default' \ +'-p+[The Python interpreter to use during resolution.]:PYTHON:_default' \ +'--python=[The Python interpreter to use during resolution.]:PYTHON:_default' \ +'(--no-build)*--no-binary=[Don'\''t install pre-built wheels]:NO_BINARY:_default' \ +'(--no-build)*--only-binary=[Only use pre-built wheels; don'\''t build source distributions]:ONLY_BINARY:_default' \ +'--python-version=[The Python version to use for resolution]:PYTHON_VERSION:_default' \ +'--python-platform=[The platform for which requirements should be resolved]:PYTHON_PLATFORM:((windows\:"An alias for \`x86_64-pc-windows-msvc\`, the default target for Windows" +linux\:"An alias for \`x86_64-unknown-linux-gnu\`, the default target for Linux" +macos\:"An alias for \`aarch64-apple-darwin\`, the default target for macOS" +x86_64-pc-windows-msvc\:"A 64-bit x86 Windows target" +i686-pc-windows-msvc\:"A 32-bit x86 Windows target" +x86_64-unknown-linux-gnu\:"An x86 Linux target. Equivalent to \`x86_64-manylinux_2_28\`" +aarch64-apple-darwin\:"An ARM-based macOS target, as seen on Apple Silicon devices" +x86_64-apple-darwin\:"An x86 macOS target" +aarch64-unknown-linux-gnu\:"An ARM64 Linux target. Equivalent to \`aarch64-manylinux_2_28\`" +aarch64-unknown-linux-musl\:"An ARM64 Linux target" +x86_64-unknown-linux-musl\:"An \`x86_64\` Linux target" +x86_64-manylinux2014\:"An \`x86_64\` target for the \`manylinux2014\` platform. Equivalent to \`x86_64-manylinux_2_17\`" +x86_64-manylinux_2_17\:"An \`x86_64\` target for the \`manylinux_2_17\` platform" +x86_64-manylinux_2_28\:"An \`x86_64\` target for the \`manylinux_2_28\` platform" +x86_64-manylinux_2_31\:"An \`x86_64\` target for the \`manylinux_2_31\` platform" +x86_64-manylinux_2_32\:"An \`x86_64\` target for the \`manylinux_2_32\` platform" +x86_64-manylinux_2_33\:"An \`x86_64\` target for the \`manylinux_2_33\` platform" +x86_64-manylinux_2_34\:"An \`x86_64\` target for the \`manylinux_2_34\` platform" +x86_64-manylinux_2_35\:"An \`x86_64\` target for the \`manylinux_2_35\` platform" +x86_64-manylinux_2_36\:"An \`x86_64\` target for the \`manylinux_2_36\` platform" +x86_64-manylinux_2_37\:"An \`x86_64\` target for the \`manylinux_2_37\` platform" +x86_64-manylinux_2_38\:"An \`x86_64\` target for the \`manylinux_2_38\` platform" +x86_64-manylinux_2_39\:"An \`x86_64\` target for the \`manylinux_2_39\` platform" +x86_64-manylinux_2_40\:"An \`x86_64\` target for the \`manylinux_2_40\` platform" +aarch64-manylinux2014\:"An ARM64 target for the \`manylinux2014\` platform. Equivalent to \`aarch64-manylinux_2_17\`" +aarch64-manylinux_2_17\:"An ARM64 target for the \`manylinux_2_17\` platform" +aarch64-manylinux_2_28\:"An ARM64 target for the \`manylinux_2_28\` platform" +aarch64-manylinux_2_31\:"An ARM64 target for the \`manylinux_2_31\` platform" +aarch64-manylinux_2_32\:"An ARM64 target for the \`manylinux_2_32\` platform" +aarch64-manylinux_2_33\:"An ARM64 target for the \`manylinux_2_33\` platform" +aarch64-manylinux_2_34\:"An ARM64 target for the \`manylinux_2_34\` platform" +aarch64-manylinux_2_35\:"An ARM64 target for the \`manylinux_2_35\` platform" +aarch64-manylinux_2_36\:"An ARM64 target for the \`manylinux_2_36\` platform" +aarch64-manylinux_2_37\:"An ARM64 target for the \`manylinux_2_37\` platform" +aarch64-manylinux_2_38\:"An ARM64 target for the \`manylinux_2_38\` platform" +aarch64-manylinux_2_39\:"An ARM64 target for the \`manylinux_2_39\` platform" +aarch64-manylinux_2_40\:"An ARM64 target for the \`manylinux_2_40\` platform" +wasm32-pyodide2024\:"A wasm32 target using the Pyodide 2024 platform. Meant for use with Python 3.12"))' \ +'*--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:_default' \ +'--torch-backend=[The backend to use when fetching packages in the PyTorch ecosystem (e.g., \`cpu\`, \`cu126\`, or \`auto\`)]:TORCH_BACKEND:((auto\:"Select the appropriate PyTorch index based on the operating system and CUDA driver version" +cpu\:"Use the CPU-only PyTorch index" +cu128\:"Use the PyTorch index for CUDA 12.8" +cu126\:"Use the PyTorch index for CUDA 12.6" +cu125\:"Use the PyTorch index for CUDA 12.5" +cu124\:"Use the PyTorch index for CUDA 12.4" +cu123\:"Use the PyTorch index for CUDA 12.3" +cu122\:"Use the PyTorch index for CUDA 12.2" +cu121\:"Use the PyTorch index for CUDA 12.1" +cu120\:"Use the PyTorch index for CUDA 12.0" +cu118\:"Use the PyTorch index for CUDA 11.8" +cu117\:"Use the PyTorch index for CUDA 11.7" +cu116\:"Use the PyTorch index for CUDA 11.6" +cu115\:"Use the PyTorch index for CUDA 11.5" +cu114\:"Use the PyTorch index for CUDA 11.4" +cu113\:"Use the PyTorch index for CUDA 11.3" +cu112\:"Use the PyTorch index for CUDA 11.2" +cu111\:"Use the PyTorch index for CUDA 11.1" +cu110\:"Use the PyTorch index for CUDA 11.0" +cu102\:"Use the PyTorch index for CUDA 10.2" +cu101\:"Use the PyTorch index for CUDA 10.1" +cu100\:"Use the PyTorch index for CUDA 10.0" +cu92\:"Use the PyTorch index for CUDA 9.2" +cu91\:"Use the PyTorch index for CUDA 9.1" +cu90\:"Use the PyTorch index for CUDA 9.0" +cu80\:"Use the PyTorch index for CUDA 8.0" +rocm6.3\:"Use the PyTorch index for ROCm 6.3" +rocm6.2.4\:"Use the PyTorch index for ROCm 6.2.4" +rocm6.2\:"Use the PyTorch index for ROCm 6.2" +rocm6.1\:"Use the PyTorch index for ROCm 6.1" +rocm6.0\:"Use the PyTorch index for ROCm 6.0" +rocm5.7\:"Use the PyTorch index for ROCm 5.7" +rocm5.6\:"Use the PyTorch index for ROCm 5.6" +rocm5.5\:"Use the PyTorch index for ROCm 5.5" +rocm5.4.2\:"Use the PyTorch index for ROCm 5.4.2" +rocm5.4\:"Use the PyTorch index for ROCm 5.4" +rocm5.3\:"Use the PyTorch index for ROCm 5.3" +rocm5.2\:"Use the PyTorch index for ROCm 5.2" +rocm5.1.1\:"Use the PyTorch index for ROCm 5.1.1" +rocm4.2\:"Use the PyTorch index for ROCm 4.2" +rocm4.1\:"Use the PyTorch index for ROCm 4.1" +rocm4.0.1\:"Use the PyTorch index for ROCm 4.0.1" +xpu\:"Use the PyTorch index for Intel XPU"))' \ +'--resolver=[]:RESOLVER:(backtracking legacy)' \ +'--max-rounds=[]:MAX_ROUNDS:_default' \ +'--cert=[]:CERT:_default' \ +'--client-cert=[]:CLIENT_CERT:_default' \ +'--config=[]:CONFIG:_default' \ +'--pip-args=[]:PIP_ARGS:_default' \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'(--extra)--all-extras[Include all optional dependencies]' \ +'--no-all-extras[]' \ +'--no-index[Ignore the registry index (e.g., PyPI), instead relying on direct URL dependencies and those provided via \`--find-links\`]' \ +'-U[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \ +'--upgrade[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \ +'--no-upgrade[]' \ +'--pre[]' \ +'--no-build-isolation[Disable isolation when building source distributions]' \ +'--build-isolation[]' \ +'--no-sources[Ignore the \`tool.uv.sources\` table when resolving dependencies. Used to lock against the standards-compliant, publishable package metadata, as opposed to using any workspace, Git, URL, or local path sources]' \ +'(--offline)--refresh[Refresh all cached data]' \ +'(--offline)--no-refresh[]' \ +'--no-deps[Ignore package dependencies, instead only add those packages explicitly listed on the command line to the resulting requirements file]' \ +'--deps[]' \ +'--no-strip-extras[Include extras in the output file]' \ +'--strip-extras[]' \ +'--no-strip-markers[Include environment markers in the output file]' \ +'--strip-markers[]' \ +'--no-annotate[Exclude comment annotations indicating the source of each package]' \ +'--annotate[]' \ +'--no-header[Exclude the comment header at the top of the generated output file]' \ +'--header[]' \ +'--system[Install packages into the system Python environment]' \ +'--no-system[]' \ +'--generate-hashes[Include distribution hashes in the output file]' \ +'--no-generate-hashes[]' \ +'(--no-binary --only-binary)--no-build[Don'\''t build source distributions]' \ +'(--no-binary --only-binary)--build[]' \ +'(--python-platform --strip-markers)--universal[Perform a universal resolution, attempting to generate a single \`requirements.txt\` output file that is compatible with all operating systems, architectures, and Python implementations]' \ +'--no-universal[]' \ +'--emit-index-url[Include \`--index-url\` and \`--extra-index-url\` entries in the generated output file]' \ +'--no-emit-index-url[]' \ +'--emit-find-links[Include \`--find-links\` entries in the generated output file]' \ +'--no-emit-find-links[]' \ +'--emit-build-options[Include \`--no-binary\` and \`--only-binary\` entries in the generated output file]' \ +'--no-emit-build-options[]' \ +'--emit-marker-expression[Whether to emit a marker string indicating when it is known that the resulting set of pinned dependencies is valid]' \ +'--no-emit-marker-expression[]' \ +'--emit-index-annotation[Include comment annotations indicating the index used to resolve each package (e.g., \`# from https\://pypi.org/simple\`)]' \ +'--no-emit-index-annotation[]' \ +'--allow-unsafe[]' \ +'--no-allow-unsafe[]' \ +'--reuse-hashes[]' \ +'--no-reuse-hashes[]' \ +'--emit-trusted-host[]' \ +'--no-emit-trusted-host[]' \ +'--no-config[]' \ +'--emit-options[]' \ +'--no-emit-options[]' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +'*::src_file -- Include all packages listed in the given `requirements.in` files:_files' \ +&& ret=0 +;; +(sync) +_arguments "${_arguments_options[@]}" : \ +'*-c+[Constrain versions using the given requirements files]:CONSTRAINTS:_default' \ +'*--constraints=[Constrain versions using the given requirements files]:CONSTRAINTS:_default' \ +'*-b+[Constrain build dependencies using the given requirements files when building source distributions]:BUILD_CONSTRAINTS:_default' \ +'*--build-constraints=[Constrain build dependencies using the given requirements files when building source distributions]:BUILD_CONSTRAINTS:_default' \ +'(--all-extras)*--extra=[Include optional dependencies from the specified extra name; may be provided more than once]:EXTRA:_default' \ +'*--group=[Install the specified dependency group from a \`pylock.toml\` or \`pyproject.toml\`]:GROUP:_default' \ +'*--index=[The URLs to use when resolving dependencies, in addition to the default index]:INDEX:_default' \ +'--default-index=[The URL of the default package index (by default\: )]:DEFAULT_INDEX:_default' \ +'-i+[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: )]:INDEX_URL:_default' \ +'--index-url=[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: )]:INDEX_URL:_default' \ +'*--extra-index-url=[(Deprecated\: use \`--index\` instead) Extra URLs of package indexes to use, in addition to \`--index-url\`]:EXTRA_INDEX_URL:_default' \ +'*-f+[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \ +'*--find-links=[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \ +'*--reinstall-package=[Reinstall a specific package, regardless of whether it'\''s already installed. Implies \`--refresh-package\`]:REINSTALL_PACKAGE:_default' \ +'--index-strategy=[The strategy to use when resolving against multiple index URLs]:INDEX_STRATEGY:((first-index\:"Only use results from the first index that returns a match for a given package name" +unsafe-first-match\:"Search for every package name across all indexes, exhausting the versions from the first index before moving on to the next" +unsafe-best-match\:"Search for every package name across all indexes, preferring the "best" version found. If a package version is in multiple indexes, only look at the entry for the first index"))' \ +'--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"))' \ +'*-C+[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \ +'*--config-setting=[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \ +'*--config-settings-package=[Settings to pass to the PEP 517 build backend for a specific package, specified as \`PACKAGE\:KEY=VALUE\` pairs]:CONFIG_SETTINGS_PACKAGE:_default' \ +'--exclude-newer=[Limit candidate packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER:_default' \ +'*--exclude-newer-package=[Limit candidate packages for specific packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER_PACKAGE:_default' \ +'--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\` directory" +copy\:"Copy packages from the wheel into the \`site-packages\` directory" +hardlink\:"Hard link packages from the wheel into the \`site-packages\` directory" +symlink\:"Symbolically link packages from the wheel into the \`site-packages\` directory"))' \ +'*--refresh-package=[Refresh cached data for a specific package]:REFRESH_PACKAGE:_default' \ +'-p+[The Python interpreter into which packages should be installed.]:PYTHON:_default' \ +'--python=[The Python interpreter into which packages should be installed.]:PYTHON:_default' \ +'(--prefix)--target=[Install packages into the specified directory, rather than into the virtual or system Python environment. The packages will be installed at the top-level of the directory]:TARGET:_files' \ +'(--target)--prefix=[Install packages into \`lib\`, \`bin\`, and other top-level folders under the specified directory, as if a virtual environment were present at that location]:PREFIX:_files' \ +'(--no-build)*--no-binary=[Don'\''t install pre-built wheels]:NO_BINARY:_default' \ +'(--no-build)*--only-binary=[Only use pre-built wheels; don'\''t build source distributions]:ONLY_BINARY:_default' \ +'--python-version=[The minimum Python version that should be supported by the requirements (e.g., \`3.7\` or \`3.7.9\`)]:PYTHON_VERSION:_default' \ +'--python-platform=[The platform for which requirements should be installed]:PYTHON_PLATFORM:((windows\:"An alias for \`x86_64-pc-windows-msvc\`, the default target for Windows" +linux\:"An alias for \`x86_64-unknown-linux-gnu\`, the default target for Linux" +macos\:"An alias for \`aarch64-apple-darwin\`, the default target for macOS" +x86_64-pc-windows-msvc\:"A 64-bit x86 Windows target" +i686-pc-windows-msvc\:"A 32-bit x86 Windows target" +x86_64-unknown-linux-gnu\:"An x86 Linux target. Equivalent to \`x86_64-manylinux_2_28\`" +aarch64-apple-darwin\:"An ARM-based macOS target, as seen on Apple Silicon devices" +x86_64-apple-darwin\:"An x86 macOS target" +aarch64-unknown-linux-gnu\:"An ARM64 Linux target. Equivalent to \`aarch64-manylinux_2_28\`" +aarch64-unknown-linux-musl\:"An ARM64 Linux target" +x86_64-unknown-linux-musl\:"An \`x86_64\` Linux target" +x86_64-manylinux2014\:"An \`x86_64\` target for the \`manylinux2014\` platform. Equivalent to \`x86_64-manylinux_2_17\`" +x86_64-manylinux_2_17\:"An \`x86_64\` target for the \`manylinux_2_17\` platform" +x86_64-manylinux_2_28\:"An \`x86_64\` target for the \`manylinux_2_28\` platform" +x86_64-manylinux_2_31\:"An \`x86_64\` target for the \`manylinux_2_31\` platform" +x86_64-manylinux_2_32\:"An \`x86_64\` target for the \`manylinux_2_32\` platform" +x86_64-manylinux_2_33\:"An \`x86_64\` target for the \`manylinux_2_33\` platform" +x86_64-manylinux_2_34\:"An \`x86_64\` target for the \`manylinux_2_34\` platform" +x86_64-manylinux_2_35\:"An \`x86_64\` target for the \`manylinux_2_35\` platform" +x86_64-manylinux_2_36\:"An \`x86_64\` target for the \`manylinux_2_36\` platform" +x86_64-manylinux_2_37\:"An \`x86_64\` target for the \`manylinux_2_37\` platform" +x86_64-manylinux_2_38\:"An \`x86_64\` target for the \`manylinux_2_38\` platform" +x86_64-manylinux_2_39\:"An \`x86_64\` target for the \`manylinux_2_39\` platform" +x86_64-manylinux_2_40\:"An \`x86_64\` target for the \`manylinux_2_40\` platform" +aarch64-manylinux2014\:"An ARM64 target for the \`manylinux2014\` platform. Equivalent to \`aarch64-manylinux_2_17\`" +aarch64-manylinux_2_17\:"An ARM64 target for the \`manylinux_2_17\` platform" +aarch64-manylinux_2_28\:"An ARM64 target for the \`manylinux_2_28\` platform" +aarch64-manylinux_2_31\:"An ARM64 target for the \`manylinux_2_31\` platform" +aarch64-manylinux_2_32\:"An ARM64 target for the \`manylinux_2_32\` platform" +aarch64-manylinux_2_33\:"An ARM64 target for the \`manylinux_2_33\` platform" +aarch64-manylinux_2_34\:"An ARM64 target for the \`manylinux_2_34\` platform" +aarch64-manylinux_2_35\:"An ARM64 target for the \`manylinux_2_35\` platform" +aarch64-manylinux_2_36\:"An ARM64 target for the \`manylinux_2_36\` platform" +aarch64-manylinux_2_37\:"An ARM64 target for the \`manylinux_2_37\` platform" +aarch64-manylinux_2_38\:"An ARM64 target for the \`manylinux_2_38\` platform" +aarch64-manylinux_2_39\:"An ARM64 target for the \`manylinux_2_39\` platform" +aarch64-manylinux_2_40\:"An ARM64 target for the \`manylinux_2_40\` platform" +wasm32-pyodide2024\:"A wasm32 target using the Pyodide 2024 platform. Meant for use with Python 3.12"))' \ +'--torch-backend=[The backend to use when fetching packages in the PyTorch ecosystem (e.g., \`cpu\`, \`cu126\`, or \`auto\`)]:TORCH_BACKEND:((auto\:"Select the appropriate PyTorch index based on the operating system and CUDA driver version" +cpu\:"Use the CPU-only PyTorch index" +cu128\:"Use the PyTorch index for CUDA 12.8" +cu126\:"Use the PyTorch index for CUDA 12.6" +cu125\:"Use the PyTorch index for CUDA 12.5" +cu124\:"Use the PyTorch index for CUDA 12.4" +cu123\:"Use the PyTorch index for CUDA 12.3" +cu122\:"Use the PyTorch index for CUDA 12.2" +cu121\:"Use the PyTorch index for CUDA 12.1" +cu120\:"Use the PyTorch index for CUDA 12.0" +cu118\:"Use the PyTorch index for CUDA 11.8" +cu117\:"Use the PyTorch index for CUDA 11.7" +cu116\:"Use the PyTorch index for CUDA 11.6" +cu115\:"Use the PyTorch index for CUDA 11.5" +cu114\:"Use the PyTorch index for CUDA 11.4" +cu113\:"Use the PyTorch index for CUDA 11.3" +cu112\:"Use the PyTorch index for CUDA 11.2" +cu111\:"Use the PyTorch index for CUDA 11.1" +cu110\:"Use the PyTorch index for CUDA 11.0" +cu102\:"Use the PyTorch index for CUDA 10.2" +cu101\:"Use the PyTorch index for CUDA 10.1" +cu100\:"Use the PyTorch index for CUDA 10.0" +cu92\:"Use the PyTorch index for CUDA 9.2" +cu91\:"Use the PyTorch index for CUDA 9.1" +cu90\:"Use the PyTorch index for CUDA 9.0" +cu80\:"Use the PyTorch index for CUDA 8.0" +rocm6.3\:"Use the PyTorch index for ROCm 6.3" +rocm6.2.4\:"Use the PyTorch index for ROCm 6.2.4" +rocm6.2\:"Use the PyTorch index for ROCm 6.2" +rocm6.1\:"Use the PyTorch index for ROCm 6.1" +rocm6.0\:"Use the PyTorch index for ROCm 6.0" +rocm5.7\:"Use the PyTorch index for ROCm 5.7" +rocm5.6\:"Use the PyTorch index for ROCm 5.6" +rocm5.5\:"Use the PyTorch index for ROCm 5.5" +rocm5.4.2\:"Use the PyTorch index for ROCm 5.4.2" +rocm5.4\:"Use the PyTorch index for ROCm 5.4" +rocm5.3\:"Use the PyTorch index for ROCm 5.3" +rocm5.2\:"Use the PyTorch index for ROCm 5.2" +rocm5.1.1\:"Use the PyTorch index for ROCm 5.1.1" +rocm4.2\:"Use the PyTorch index for ROCm 4.2" +rocm4.1\:"Use the PyTorch index for ROCm 4.1" +rocm4.0.1\:"Use the PyTorch index for ROCm 4.0.1" +xpu\:"Use the PyTorch index for Intel XPU"))' \ +'--python-executable=[]:PYTHON_EXECUTABLE:_default' \ +'--cert=[]:CERT:_default' \ +'--client-cert=[]:CLIENT_CERT:_default' \ +'--config=[]:CONFIG:_default' \ +'--pip-args=[]:PIP_ARGS:_default' \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'(--extra)--all-extras[Include all optional dependencies]' \ +'--no-all-extras[]' \ +'--no-index[Ignore the registry index (e.g., PyPI), instead relying on direct URL dependencies and those provided via \`--find-links\`]' \ +'--reinstall[Reinstall all packages, regardless of whether they'\''re already installed. Implies \`--refresh\`]' \ +'--no-reinstall[]' \ +'--no-build-isolation[Disable isolation when building source distributions]' \ +'--build-isolation[]' \ +'--compile-bytecode[Compile Python files to bytecode after installation]' \ +'--no-compile-bytecode[]' \ +'--no-sources[Ignore the \`tool.uv.sources\` table when resolving dependencies. Used to lock against the standards-compliant, publishable package metadata, as opposed to using any workspace, Git, URL, or local path sources]' \ +'(--offline)--refresh[Refresh all cached data]' \ +'(--offline)--no-refresh[]' \ +'--require-hashes[Require a matching hash for each requirement]' \ +'--no-require-hashes[]' \ +'--verify-hashes[]' \ +'--no-verify-hashes[Disable validation of hashes in the requirements file]' \ +'--system[Install packages into the system Python environment]' \ +'--no-system[]' \ +'--break-system-packages[Allow uv to modify an \`EXTERNALLY-MANAGED\` Python installation]' \ +'--no-break-system-packages[]' \ +'(--no-binary --only-binary)--no-build[Don'\''t build source distributions]' \ +'(--no-binary --only-binary)--build[]' \ +'--allow-empty-requirements[Allow sync of empty requirements, which will clear the environment of all packages]' \ +'--no-allow-empty-requirements[]' \ +'--strict[Validate the Python environment after completing the installation, to detect packages with missing dependencies or other issues]' \ +'--no-strict[]' \ +'--dry-run[Perform a dry run, i.e., don'\''t actually install anything but resolve the dependencies and print the resulting plan]' \ +'-a[]' \ +'--ask[]' \ +'--user[]' \ +'--no-config[]' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +'*::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.txt\` or \`pylock.toml\` files]:REQUIREMENTS:_files' \ +'*--requirements=[Install all packages listed in the given \`requirements.txt\` or \`pylock.toml\` files]:REQUIREMENTS:_files' \ +'*-e+[Install the editable package based on the provided local file path]:EDITABLE:_default' \ +'*--editable=[Install the editable package based on the provided local file path]:EDITABLE:_default' \ +'*-c+[Constrain versions using the given requirements files]:CONSTRAINTS:_default' \ +'*--constraints=[Constrain versions using the given requirements files]:CONSTRAINTS:_default' \ +'*--overrides=[Override versions using the given requirements files]:OVERRIDES:_default' \ +'*-b+[Constrain build dependencies using the given requirements files when building source distributions]:BUILD_CONSTRAINTS:_default' \ +'*--build-constraints=[Constrain build dependencies using the given requirements files when building source distributions]:BUILD_CONSTRAINTS:_default' \ +'(--all-extras)*--extra=[Include optional dependencies from the specified extra name; may be provided more than once]:EXTRA:_default' \ +'*--group=[Install the specified dependency group from a \`pylock.toml\` or \`pyproject.toml\`]:GROUP:_default' \ +'*--index=[The URLs to use when resolving dependencies, in addition to the default index]:INDEX:_default' \ +'--default-index=[The URL of the default package index (by default\: )]:DEFAULT_INDEX:_default' \ +'-i+[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: )]:INDEX_URL:_default' \ +'--index-url=[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: )]:INDEX_URL:_default' \ +'*--extra-index-url=[(Deprecated\: use \`--index\` instead) Extra URLs of package indexes to use, in addition to \`--index-url\`]:EXTRA_INDEX_URL:_default' \ +'*-f+[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \ +'*--find-links=[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \ +'*-P+[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \ +'*--upgrade-package=[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \ +'*--reinstall-package=[Reinstall a specific package, regardless of whether it'\''s already installed. Implies \`--refresh-package\`]:REINSTALL_PACKAGE:_default' \ +'--index-strategy=[The strategy to use when resolving against multiple index URLs]:INDEX_STRATEGY:((first-index\:"Only use results from the first index that returns a match for a given package name" +unsafe-first-match\:"Search for every package name across all indexes, exhausting the versions from the first index before moving on to the next" +unsafe-best-match\:"Search for every package name across all indexes, preferring the "best" version found. If a package version is in multiple indexes, only look at the entry for the first index"))' \ +'--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"))' \ +'--resolution=[The strategy to use when selecting between the different compatible versions for a given package requirement]: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=[The strategy to use when considering pre-release versions]: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"))' \ +'--fork-strategy=[The strategy to use when selecting multiple versions of a given package across Python versions and platforms]:FORK_STRATEGY:((fewest\:"Optimize for selecting the fewest number of versions for each package. Older versions may be preferred if they are compatible with a wider range of supported Python versions or platforms" +requires-python\:"Optimize for selecting latest supported version of each package, for each supported Python version"))' \ +'*-C+[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \ +'*--config-setting=[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \ +'*--config-settings-package=[Settings to pass to the PEP 517 build backend for a specific package, specified as \`PACKAGE\:KEY=VALUE\` pairs]:CONFIG_SETTINGS_PACKAGE:_default' \ +'*--no-build-isolation-package=[Disable isolation when building source distributions for a specific package]:NO_BUILD_ISOLATION_PACKAGE:_default' \ +'--exclude-newer=[Limit candidate packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER:_default' \ +'*--exclude-newer-package=[Limit candidate packages for specific packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER_PACKAGE:_default' \ +'--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\` directory" +copy\:"Copy packages from the wheel into the \`site-packages\` directory" +hardlink\:"Hard link packages from the wheel into the \`site-packages\` directory" +symlink\:"Symbolically link packages from the wheel into the \`site-packages\` directory"))' \ +'*--refresh-package=[Refresh cached data for a specific package]:REFRESH_PACKAGE:_default' \ +'-p+[The Python interpreter into which packages should be installed.]:PYTHON:_default' \ +'--python=[The Python interpreter into which packages should be installed.]:PYTHON:_default' \ +'(--prefix)--target=[Install packages into the specified directory, rather than into the virtual or system Python environment. The packages will be installed at the top-level of the directory]:TARGET:_files' \ +'(--target)--prefix=[Install packages into \`lib\`, \`bin\`, and other top-level folders under the specified directory, as if a virtual environment were present at that location]:PREFIX:_files' \ +'(--no-build)*--no-binary=[Don'\''t install pre-built wheels]:NO_BINARY:_default' \ +'(--no-build)*--only-binary=[Only use pre-built wheels; don'\''t build source distributions]:ONLY_BINARY:_default' \ +'--python-version=[The minimum Python version that should be supported by the requirements (e.g., \`3.7\` or \`3.7.9\`)]:PYTHON_VERSION:_default' \ +'--python-platform=[The platform for which requirements should be installed]:PYTHON_PLATFORM:((windows\:"An alias for \`x86_64-pc-windows-msvc\`, the default target for Windows" +linux\:"An alias for \`x86_64-unknown-linux-gnu\`, the default target for Linux" +macos\:"An alias for \`aarch64-apple-darwin\`, the default target for macOS" +x86_64-pc-windows-msvc\:"A 64-bit x86 Windows target" +i686-pc-windows-msvc\:"A 32-bit x86 Windows target" +x86_64-unknown-linux-gnu\:"An x86 Linux target. Equivalent to \`x86_64-manylinux_2_28\`" +aarch64-apple-darwin\:"An ARM-based macOS target, as seen on Apple Silicon devices" +x86_64-apple-darwin\:"An x86 macOS target" +aarch64-unknown-linux-gnu\:"An ARM64 Linux target. Equivalent to \`aarch64-manylinux_2_28\`" +aarch64-unknown-linux-musl\:"An ARM64 Linux target" +x86_64-unknown-linux-musl\:"An \`x86_64\` Linux target" +x86_64-manylinux2014\:"An \`x86_64\` target for the \`manylinux2014\` platform. Equivalent to \`x86_64-manylinux_2_17\`" +x86_64-manylinux_2_17\:"An \`x86_64\` target for the \`manylinux_2_17\` platform" +x86_64-manylinux_2_28\:"An \`x86_64\` target for the \`manylinux_2_28\` platform" +x86_64-manylinux_2_31\:"An \`x86_64\` target for the \`manylinux_2_31\` platform" +x86_64-manylinux_2_32\:"An \`x86_64\` target for the \`manylinux_2_32\` platform" +x86_64-manylinux_2_33\:"An \`x86_64\` target for the \`manylinux_2_33\` platform" +x86_64-manylinux_2_34\:"An \`x86_64\` target for the \`manylinux_2_34\` platform" +x86_64-manylinux_2_35\:"An \`x86_64\` target for the \`manylinux_2_35\` platform" +x86_64-manylinux_2_36\:"An \`x86_64\` target for the \`manylinux_2_36\` platform" +x86_64-manylinux_2_37\:"An \`x86_64\` target for the \`manylinux_2_37\` platform" +x86_64-manylinux_2_38\:"An \`x86_64\` target for the \`manylinux_2_38\` platform" +x86_64-manylinux_2_39\:"An \`x86_64\` target for the \`manylinux_2_39\` platform" +x86_64-manylinux_2_40\:"An \`x86_64\` target for the \`manylinux_2_40\` platform" +aarch64-manylinux2014\:"An ARM64 target for the \`manylinux2014\` platform. Equivalent to \`aarch64-manylinux_2_17\`" +aarch64-manylinux_2_17\:"An ARM64 target for the \`manylinux_2_17\` platform" +aarch64-manylinux_2_28\:"An ARM64 target for the \`manylinux_2_28\` platform" +aarch64-manylinux_2_31\:"An ARM64 target for the \`manylinux_2_31\` platform" +aarch64-manylinux_2_32\:"An ARM64 target for the \`manylinux_2_32\` platform" +aarch64-manylinux_2_33\:"An ARM64 target for the \`manylinux_2_33\` platform" +aarch64-manylinux_2_34\:"An ARM64 target for the \`manylinux_2_34\` platform" +aarch64-manylinux_2_35\:"An ARM64 target for the \`manylinux_2_35\` platform" +aarch64-manylinux_2_36\:"An ARM64 target for the \`manylinux_2_36\` platform" +aarch64-manylinux_2_37\:"An ARM64 target for the \`manylinux_2_37\` platform" +aarch64-manylinux_2_38\:"An ARM64 target for the \`manylinux_2_38\` platform" +aarch64-manylinux_2_39\:"An ARM64 target for the \`manylinux_2_39\` platform" +aarch64-manylinux_2_40\:"An ARM64 target for the \`manylinux_2_40\` platform" +wasm32-pyodide2024\:"A wasm32 target using the Pyodide 2024 platform. Meant for use with Python 3.12"))' \ +'--torch-backend=[The backend to use when fetching packages in the PyTorch ecosystem (e.g., \`cpu\`, \`cu126\`, or \`auto\`)]:TORCH_BACKEND:((auto\:"Select the appropriate PyTorch index based on the operating system and CUDA driver version" +cpu\:"Use the CPU-only PyTorch index" +cu128\:"Use the PyTorch index for CUDA 12.8" +cu126\:"Use the PyTorch index for CUDA 12.6" +cu125\:"Use the PyTorch index for CUDA 12.5" +cu124\:"Use the PyTorch index for CUDA 12.4" +cu123\:"Use the PyTorch index for CUDA 12.3" +cu122\:"Use the PyTorch index for CUDA 12.2" +cu121\:"Use the PyTorch index for CUDA 12.1" +cu120\:"Use the PyTorch index for CUDA 12.0" +cu118\:"Use the PyTorch index for CUDA 11.8" +cu117\:"Use the PyTorch index for CUDA 11.7" +cu116\:"Use the PyTorch index for CUDA 11.6" +cu115\:"Use the PyTorch index for CUDA 11.5" +cu114\:"Use the PyTorch index for CUDA 11.4" +cu113\:"Use the PyTorch index for CUDA 11.3" +cu112\:"Use the PyTorch index for CUDA 11.2" +cu111\:"Use the PyTorch index for CUDA 11.1" +cu110\:"Use the PyTorch index for CUDA 11.0" +cu102\:"Use the PyTorch index for CUDA 10.2" +cu101\:"Use the PyTorch index for CUDA 10.1" +cu100\:"Use the PyTorch index for CUDA 10.0" +cu92\:"Use the PyTorch index for CUDA 9.2" +cu91\:"Use the PyTorch index for CUDA 9.1" +cu90\:"Use the PyTorch index for CUDA 9.0" +cu80\:"Use the PyTorch index for CUDA 8.0" +rocm6.3\:"Use the PyTorch index for ROCm 6.3" +rocm6.2.4\:"Use the PyTorch index for ROCm 6.2.4" +rocm6.2\:"Use the PyTorch index for ROCm 6.2" +rocm6.1\:"Use the PyTorch index for ROCm 6.1" +rocm6.0\:"Use the PyTorch index for ROCm 6.0" +rocm5.7\:"Use the PyTorch index for ROCm 5.7" +rocm5.6\:"Use the PyTorch index for ROCm 5.6" +rocm5.5\:"Use the PyTorch index for ROCm 5.5" +rocm5.4.2\:"Use the PyTorch index for ROCm 5.4.2" +rocm5.4\:"Use the PyTorch index for ROCm 5.4" +rocm5.3\:"Use the PyTorch index for ROCm 5.3" +rocm5.2\:"Use the PyTorch index for ROCm 5.2" +rocm5.1.1\:"Use the PyTorch index for ROCm 5.1.1" +rocm4.2\:"Use the PyTorch index for ROCm 4.2" +rocm4.1\:"Use the PyTorch index for ROCm 4.1" +rocm4.0.1\:"Use the PyTorch index for ROCm 4.0.1" +xpu\:"Use the PyTorch index for Intel XPU"))' \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'(--extra)--all-extras[Include all optional dependencies]' \ +'--no-all-extras[]' \ +'--no-index[Ignore the registry index (e.g., PyPI), instead relying on direct URL dependencies and those provided via \`--find-links\`]' \ +'-U[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \ +'--upgrade[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \ +'--no-upgrade[]' \ +'--reinstall[Reinstall all packages, regardless of whether they'\''re already installed. Implies \`--refresh\`]' \ +'--no-reinstall[]' \ +'--pre[]' \ +'--no-build-isolation[Disable isolation when building source distributions]' \ +'--build-isolation[]' \ +'--compile-bytecode[Compile Python files to bytecode after installation]' \ +'--no-compile-bytecode[]' \ +'--no-sources[Ignore the \`tool.uv.sources\` table when resolving dependencies. Used to lock against the standards-compliant, publishable package metadata, as opposed to using any workspace, Git, URL, or local path sources]' \ +'(--offline)--refresh[Refresh all cached data]' \ +'(--offline)--no-refresh[]' \ +'--no-deps[Ignore package dependencies, instead only installing those packages explicitly listed on the command line or in the requirements files]' \ +'--deps[]' \ +'--require-hashes[Require a matching hash for each requirement]' \ +'--no-require-hashes[]' \ +'--verify-hashes[]' \ +'--no-verify-hashes[Disable validation of hashes in the requirements file]' \ +'--system[Install packages into the system Python environment]' \ +'--no-system[]' \ +'--break-system-packages[Allow uv to modify an \`EXTERNALLY-MANAGED\` Python installation]' \ +'--no-break-system-packages[]' \ +'(--no-binary --only-binary)--no-build[Don'\''t build source distributions]' \ +'(--no-binary --only-binary)--build[]' \ +'--inexact[Do not remove extraneous packages present in the environment]' \ +'--exact[Perform an exact sync, removing extraneous packages]' \ +'--strict[Validate the Python environment after completing the installation, to detect packages with missing dependencies or other issues]' \ +'--no-strict[]' \ +'--dry-run[Perform a dry run, i.e., don'\''t actually install anything but resolve the dependencies and print the resulting plan]' \ +'--disable-pip-version-check[]' \ +'--user[]' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +'*::package -- Install all listed packages:_default' \ +&& ret=0 +;; +(uninstall) +_arguments "${_arguments_options[@]}" : \ +'*-r+[Uninstall all packages listed in the given requirements files]:REQUIREMENTS:_files' \ +'*--requirements=[Uninstall all packages listed in the given requirements files]:REQUIREMENTS:_files' \ +'-p+[The Python interpreter from which packages should be uninstalled.]:PYTHON:_default' \ +'--python=[The Python interpreter from which packages should be uninstalled.]:PYTHON:_default' \ +'--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"))' \ +'(--prefix)--target=[Uninstall packages from the specified \`--target\` directory]:TARGET:_files' \ +'(--target)--prefix=[Uninstall packages from the specified \`--prefix\` directory]:PREFIX:_files' \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'--system[Use the system Python to uninstall packages]' \ +'--no-system[]' \ +'--break-system-packages[Allow uv to modify an \`EXTERNALLY-MANAGED\` Python installation]' \ +'--no-break-system-packages[]' \ +'--dry-run[Perform a dry run, i.e., don'\''t actually uninstall anything but print the resulting plan]' \ +'--disable-pip-version-check[]' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +'*::package -- Uninstall all listed packages:_default' \ +&& ret=0 +;; +(freeze) +_arguments "${_arguments_options[@]}" : \ +'-p+[The Python interpreter for which packages should be listed.]:PYTHON:_default' \ +'--python=[The Python interpreter for which packages should be listed.]:PYTHON:_default' \ +'*--path=[Restrict to the specified installation path for listing packages (can be used multiple times)]:PATHS:_files' \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'--exclude-editable[Exclude any editable packages from output]' \ +'--strict[Validate the Python environment, to detect packages with missing dependencies and other issues]' \ +'--no-strict[]' \ +'--system[List packages in the system Python environment]' \ +'--no-system[]' \ +'--disable-pip-version-check[]' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +&& ret=0 +;; +(list) +_arguments "${_arguments_options[@]}" : \ +'*--exclude=[Exclude the specified package(s) from the output]:EXCLUDE:_default' \ +'--format=[Select the output format]: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"))' \ +'*--index=[The URLs to use when resolving dependencies, in addition to the default index]:INDEX:_default' \ +'--default-index=[The URL of the default package index (by default\: )]:DEFAULT_INDEX:_default' \ +'-i+[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: )]:INDEX_URL:_default' \ +'--index-url=[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: )]:INDEX_URL:_default' \ +'*--extra-index-url=[(Deprecated\: use \`--index\` instead) Extra URLs of package indexes to use, in addition to \`--index-url\`]:EXTRA_INDEX_URL:_default' \ +'*-f+[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \ +'*--find-links=[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \ +'--index-strategy=[The strategy to use when resolving against multiple index URLs]:INDEX_STRATEGY:((first-index\:"Only use results from the first index that returns a match for a given package name" +unsafe-first-match\:"Search for every package name across all indexes, exhausting the versions from the first index before moving on to the next" +unsafe-best-match\:"Search for every package name across all indexes, preferring the "best" version found. If a package version is in multiple indexes, only look at the entry for the first index"))' \ +'--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:_default' \ +'-p+[The Python interpreter for which packages should be listed.]:PYTHON:_default' \ +'--python=[The Python interpreter for which packages should be listed.]:PYTHON:_default' \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'-e[Only include editable projects]' \ +'--editable[Only include editable projects]' \ +'(-e --editable)--exclude-editable[Exclude any editable packages from output]' \ +'--outdated[List outdated packages]' \ +'--no-outdated[]' \ +'--strict[Validate the Python environment, to detect packages with missing dependencies and other issues]' \ +'--no-strict[]' \ +'--no-index[Ignore the registry index (e.g., PyPI), instead relying on direct URL dependencies and those provided via \`--find-links\`]' \ +'--system[List packages in the system Python environment]' \ +'--no-system[]' \ +'--disable-pip-version-check[]' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +&& ret=0 +;; +(show) +_arguments "${_arguments_options[@]}" : \ +'-p+[The Python interpreter to find the package in.]:PYTHON:_default' \ +'--python=[The Python interpreter to find the package in.]:PYTHON:_default' \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'--strict[Validate the Python environment, to detect packages with missing dependencies and other issues]' \ +'--no-strict[]' \ +'-f[Show the full list of installed files for each package]' \ +'--files[Show the full list of installed files for each package]' \ +'--system[Show a package in the system Python environment]' \ +'--no-system[]' \ +'--disable-pip-version-check[]' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +'*::package -- The package(s) to display:_default' \ +&& ret=0 +;; +(tree) +_arguments "${_arguments_options[@]}" : \ +'-d+[Maximum display depth of the dependency tree]:DEPTH:_default' \ +'--depth=[Maximum display depth of the dependency tree]:DEPTH:_default' \ +'*--prune=[Prune the given package from the display of the dependency tree]:PRUNE:_default' \ +'*--package=[Display only the specified packages]:PACKAGE:_default' \ +'*--index=[The URLs to use when resolving dependencies, in addition to the default index]:INDEX:_default' \ +'--default-index=[The URL of the default package index (by default\: )]:DEFAULT_INDEX:_default' \ +'-i+[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: )]:INDEX_URL:_default' \ +'--index-url=[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: )]:INDEX_URL:_default' \ +'*--extra-index-url=[(Deprecated\: use \`--index\` instead) Extra URLs of package indexes to use, in addition to \`--index-url\`]:EXTRA_INDEX_URL:_default' \ +'*-f+[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \ +'*--find-links=[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \ +'--index-strategy=[The strategy to use when resolving against multiple index URLs]:INDEX_STRATEGY:((first-index\:"Only use results from the first index that returns a match for a given package name" +unsafe-first-match\:"Search for every package name across all indexes, exhausting the versions from the first index before moving on to the next" +unsafe-best-match\:"Search for every package name across all indexes, preferring the "best" version found. If a package version is in multiple indexes, only look at the entry for the first index"))' \ +'--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:_default' \ +'-p+[The Python interpreter for which packages should be listed.]:PYTHON:_default' \ +'--python=[The Python interpreter for which packages should be listed.]:PYTHON:_default' \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'--show-version-specifiers[Show the version constraint(s) imposed on each package]' \ +'--no-dedupe[Do not de-duplicate repeated dependencies. Usually, when a package has already displayed its dependencies, further occurrences will not re-display its dependencies, and will include a (*) to indicate it has already been shown. This flag will cause those duplicates to be repeated]' \ +'--invert[Show the reverse dependencies for the given package. This flag will invert the tree and display the packages that depend on the given package]' \ +'--outdated[Show the latest available version of each package in the tree]' \ +'--strict[Validate the Python environment, to detect packages with missing dependencies and other issues]' \ +'--no-strict[]' \ +'--no-index[Ignore the registry index (e.g., PyPI), instead relying on direct URL dependencies and those provided via \`--find-links\`]' \ +'--system[List packages in the system Python environment]' \ +'--no-system[]' \ +'--disable-pip-version-check[]' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +&& ret=0 +;; +(check) +_arguments "${_arguments_options[@]}" : \ +'-p+[The Python interpreter for which packages should be checked.]:PYTHON:_default' \ +'--python=[The Python interpreter for which packages should be checked.]:PYTHON:_default' \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'--system[Check packages in the system Python environment]' \ +'--no-system[]' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +&& ret=0 +;; + esac + ;; +esac +;; +(venv) +_arguments "${_arguments_options[@]}" : \ +'-p+[The Python interpreter to use for the virtual environment.]:PYTHON:_default' \ +'--python=[The Python interpreter to use for the virtual environment.]:PYTHON:_default' \ +'--prompt=[Provide an alternative prompt prefix for the virtual environment.]:PROMPT:_default' \ +'*--index=[The URLs to use when resolving dependencies, in addition to the default index]:INDEX:_default' \ +'--default-index=[The URL of the default package index (by default\: )]:DEFAULT_INDEX:_default' \ +'-i+[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: )]:INDEX_URL:_default' \ +'--index-url=[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: )]:INDEX_URL:_default' \ +'*--extra-index-url=[(Deprecated\: use \`--index\` instead) Extra URLs of package indexes to use, in addition to \`--index-url\`]:EXTRA_INDEX_URL:_default' \ +'*-f+[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \ +'*--find-links=[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \ +'--index-strategy=[The strategy to use when resolving against multiple index URLs]:INDEX_STRATEGY:((first-index\:"Only use results from the first index that returns a match for a given package name" +unsafe-first-match\:"Search for every package name across all indexes, exhausting the versions from the first index before moving on to the next" +unsafe-best-match\:"Search for every package name across all indexes, preferring the "best" version found. If a package version is in multiple indexes, only look at the entry for the first index"))' \ +'--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:_default' \ +'*--exclude-newer-package=[Limit candidate packages for a specific package to those that were uploaded prior to the given date]:EXCLUDE_NEWER_PACKAGE:_default' \ +'--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\` directory" +copy\:"Copy packages from the wheel into the \`site-packages\` directory" +hardlink\:"Hard link packages from the wheel into the \`site-packages\` directory" +symlink\:"Symbolically link packages from the wheel into the \`site-packages\` directory"))' \ +'*--refresh-package=[Refresh cached data for a specific package]:REFRESH_PACKAGE:_default' \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'--system[Ignore virtual environments when searching for the Python interpreter]' \ +'--no-system[This flag is included for compatibility only, it has no effect]' \ +'--no-project[Avoid discovering a project or workspace]' \ +'--seed[Install seed packages (one or more of\: \`pip\`, \`setuptools\`, and \`wheel\`) into the virtual environment]' \ +'-c[Remove any existing files or directories at the target path]' \ +'--clear[Remove any existing files or directories at the target path]' \ +'--allow-existing[Preserve any existing files or directories at the target path]' \ +'--system-site-packages[Give the virtual environment access to the system site packages directory]' \ +'--relocatable[Make the virtual environment relocatable]' \ +'--no-index[Ignore the registry index (e.g., PyPI), instead relying on direct URL dependencies and those provided via \`--find-links\`]' \ +'(--offline)--refresh[Refresh all cached data]' \ +'(--offline)--no-refresh[]' \ +'--no-seed[]' \ +'--no-pip[]' \ +'--no-setuptools[]' \ +'--no-wheel[]' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +'::path -- The path to the virtual environment to create:_files' \ +&& ret=0 +;; +(build) +_arguments "${_arguments_options[@]}" : \ +'(--all-packages)--package=[Build a specific package in the workspace]:PACKAGE:_default' \ +'-o+[The output directory to which distributions should be written]:OUT_DIR:_files' \ +'--out-dir=[The output directory to which distributions should be written]:OUT_DIR:_files' \ +'*-b+[Constrain build dependencies using the given requirements files when building distributions]:BUILD_CONSTRAINTS:_default' \ +'*--build-constraints=[Constrain build dependencies using the given requirements files when building distributions]:BUILD_CONSTRAINTS:_default' \ +'-p+[The Python interpreter to use for the build environment.]:PYTHON:_default' \ +'--python=[The Python interpreter to use for the build environment.]:PYTHON:_default' \ +'*--index=[The URLs to use when resolving dependencies, in addition to the default index]:INDEX:_default' \ +'--default-index=[The URL of the default package index (by default\: )]:DEFAULT_INDEX:_default' \ +'-i+[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: )]:INDEX_URL:_default' \ +'--index-url=[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: )]:INDEX_URL:_default' \ +'*--extra-index-url=[(Deprecated\: use \`--index\` instead) Extra URLs of package indexes to use, in addition to \`--index-url\`]:EXTRA_INDEX_URL:_default' \ +'*-f+[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \ +'*--find-links=[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \ +'*-P+[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \ +'*--upgrade-package=[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \ +'--index-strategy=[The strategy to use when resolving against multiple index URLs]:INDEX_STRATEGY:((first-index\:"Only use results from the first index that returns a match for a given package name" +unsafe-first-match\:"Search for every package name across all indexes, exhausting the versions from the first index before moving on to the next" +unsafe-best-match\:"Search for every package name across all indexes, preferring the "best" version found. If a package version is in multiple indexes, only look at the entry for the first index"))' \ +'--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"))' \ +'--resolution=[The strategy to use when selecting between the different compatible versions for a given package requirement]: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=[The strategy to use when considering pre-release versions]: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"))' \ +'--fork-strategy=[The strategy to use when selecting multiple versions of a given package across Python versions and platforms]:FORK_STRATEGY:((fewest\:"Optimize for selecting the fewest number of versions for each package. Older versions may be preferred if they are compatible with a wider range of supported Python versions or platforms" +requires-python\:"Optimize for selecting latest supported version of each package, for each supported Python version"))' \ +'*-C+[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \ +'*--config-setting=[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \ +'*--config-settings-package=[Settings to pass to the PEP 517 build backend for a specific package, specified as \`PACKAGE\:KEY=VALUE\` pairs]:CONFIG_SETTINGS_PACKAGE:_default' \ +'*--no-build-isolation-package=[Disable isolation when building source distributions for a specific package]:NO_BUILD_ISOLATION_PACKAGE:_default' \ +'--exclude-newer=[Limit candidate packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER:_default' \ +'*--exclude-newer-package=[Limit candidate packages for a specific package to those that were uploaded prior to the given date]:EXCLUDE_NEWER_PACKAGE:_default' \ +'--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\` directory" +copy\:"Copy packages from the wheel into the \`site-packages\` directory" +hardlink\:"Hard link packages from the wheel into the \`site-packages\` directory" +symlink\:"Symbolically link packages from the wheel into the \`site-packages\` directory"))' \ +'*--no-build-package=[Don'\''t build source distributions for a specific package]:NO_BUILD_PACKAGE:_default' \ +'*--no-binary-package=[Don'\''t install pre-built wheels for a specific package]:NO_BINARY_PACKAGE:_default' \ +'*--refresh-package=[Refresh cached data for a specific package]:REFRESH_PACKAGE:_default' \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'(--package)--all-packages[Builds all packages in the workspace]' \ +'--sdist[Build a source distribution ("sdist") from the given directory]' \ +'--wheel[Build a binary distribution ("wheel") from the given directory]' \ +'--list[When using the uv build backend, list the files that would be included when building]' \ +'--build-logs[]' \ +'--no-build-logs[Hide logs from the build backend]' \ +'(--list)--force-pep517[Always build through PEP 517, don'\''t use the fast path for the uv build backend]' \ +'--require-hashes[Require a matching hash for each requirement]' \ +'--no-require-hashes[]' \ +'--verify-hashes[]' \ +'--no-verify-hashes[Disable validation of hashes in the requirements file]' \ +'--no-index[Ignore the registry index (e.g., PyPI), instead relying on direct URL dependencies and those provided via \`--find-links\`]' \ +'-U[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \ +'--upgrade[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \ +'--no-upgrade[]' \ +'--pre[]' \ +'--no-build-isolation[Disable isolation when building source distributions]' \ +'--build-isolation[]' \ +'--no-sources[Ignore the \`tool.uv.sources\` table when resolving dependencies. Used to lock against the standards-compliant, publishable package metadata, as opposed to using any workspace, Git, URL, or local path sources]' \ +'--no-build[Don'\''t build source distributions]' \ +'--build[]' \ +'--no-binary[Don'\''t install pre-built wheels]' \ +'--binary[]' \ +'(--offline)--refresh[Refresh all cached data]' \ +'(--offline)--no-refresh[]' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +'::src -- The directory from which distributions should be built, or a source distribution archive to build into a wheel:_files' \ +&& ret=0 +;; +(publish) +_arguments "${_arguments_options[@]}" : \ +'(--publish-url --check-url)--index=[The name of an index in the configuration to use for publishing.]:INDEX:_default' \ +'-u+[The username for the upload]:USERNAME:_default' \ +'--username=[The username for the upload]:USERNAME:_default' \ +'-p+[The password for the upload]:PASSWORD:_default' \ +'--password=[The password for the upload]:PASSWORD:_default' \ +'(-u --username -p --password)-t+[The token for the upload]:TOKEN:_default' \ +'(-u --username -p --password)--token=[The token for the upload]:TOKEN:_default' \ +'--trusted-publishing=[Configure using trusted publishing through GitHub Actions]:TRUSTED_PUBLISHING:((automatic\:"Try trusted publishing when we'\''re already in GitHub Actions, continue if that fails" +always\:"" +never\:""))' \ +'--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"))' \ +'--publish-url=[The URL of the upload endpoint (not the index URL)]:PUBLISH_URL:_default' \ +'--check-url=[Check an index URL for existing files to skip duplicate uploads]:CHECK_URL:_default' \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'--skip-existing[]' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +'*::files -- Paths to the files to upload. Accepts glob expressions:_default' \ +&& ret=0 +;; +(build-backend) +_arguments "${_arguments_options[@]}" : \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +":: :_uv__build-backend_commands" \ +"*::: :->build-backend" \ +&& ret=0 + + case $state in + (build-backend) + words=($line[1] "${words[@]}") + (( CURRENT += 1 )) + curcontext="${curcontext%:*:*}:uv-build-backend-command-$line[1]:" + case $line[1] in + (build-sdist) +_arguments "${_arguments_options[@]}" : \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +':sdist_directory:_files' \ +&& ret=0 +;; +(build-wheel) +_arguments "${_arguments_options[@]}" : \ +'--metadata-directory=[]:METADATA_DIRECTORY:_files' \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +':wheel_directory:_files' \ +&& ret=0 +;; +(build-editable) +_arguments "${_arguments_options[@]}" : \ +'--metadata-directory=[]:METADATA_DIRECTORY:_files' \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +':wheel_directory:_files' \ +&& ret=0 +;; +(get-requires-for-build-sdist) +_arguments "${_arguments_options[@]}" : \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +&& ret=0 +;; +(get-requires-for-build-wheel) +_arguments "${_arguments_options[@]}" : \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +&& ret=0 +;; +(prepare-metadata-for-build-wheel) +_arguments "${_arguments_options[@]}" : \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +':wheel_directory:_files' \ +&& ret=0 +;; +(get-requires-for-build-editable) +_arguments "${_arguments_options[@]}" : \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +&& ret=0 +;; +(prepare-metadata-for-build-editable) +_arguments "${_arguments_options[@]}" : \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +':wheel_directory:_files' \ +&& ret=0 +;; + esac + ;; +esac +;; +(cache) +_arguments "${_arguments_options[@]}" : \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +":: :_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[@]}" : \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +'*::package -- The packages to remove from the cache:_default' \ +&& ret=0 +;; +(prune) +_arguments "${_arguments_options[@]}" : \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'--ci[Optimize the cache for persistence in a continuous integration environment, like GitHub Actions]' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +&& ret=0 +;; +(dir) +_arguments "${_arguments_options[@]}" : \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +&& ret=0 +;; + esac + ;; +esac +;; +(self) +_arguments "${_arguments_options[@]}" : \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +":: :_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[@]}" : \ +'--token=[A GitHub token for authentication. A token is not required but can be used to reduce the chance of encountering rate limits]:TOKEN:_default' \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'--dry-run[Run without performing the update]' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +'::target_version -- Update to the specified version. If not provided, uv will update to the latest version:_default' \ +&& ret=0 +;; +(version) +_arguments "${_arguments_options[@]}" : \ +'--output-format=[]:OUTPUT_FORMAT:((text\:"Display the version as plain text" +json\:"Display the version as JSON"))' \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'--short[Only print the version]' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +&& ret=0 +;; + esac + ;; +esac +;; +(clean) +_arguments "${_arguments_options[@]}" : \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +'*::package -- The packages to remove from the cache:_default' \ +&& ret=0 +;; +(generate-shell-completion) +_arguments "${_arguments_options[@]}" : \ +'--cache-dir=[]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'(--no-color)--color=[]: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"))' \ +'--config-file=[]:CONFIG_FILE:_files' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'-n[]' \ +'--no-cache[]' \ +'--no-python-downloads[]' \ +'(-v --verbose)*-q[]' \ +'(-v --verbose)*--quiet[]' \ +'(-q --quiet)*-v[]' \ +'(-q --quiet)*--verbose[]' \ +'--native-tls[]' \ +'--offline[]' \ +'--no-progress[]' \ +'--no-config[]' \ +'-h[]' \ +'--help[]' \ +'-V[]' \ +'--version[]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'(--color)--no-color[Disable colors]' \ +'--no-native-tls[]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +':shell -- The shell to generate the completion script for:(bash elvish fish nushell powershell zsh)' \ +&& ret=0 +;; +(help) +_arguments "${_arguments_options[@]}" : \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'--no-pager[Disable pager when printing help]' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +'*::command:_default' \ +&& ret=0 +;; + esac + ;; +esac +} + +(( $+functions[_uv_commands] )) || +_uv_commands() { + local commands; commands=( +'run:Run a command or script' \ +'init:Create a new project' \ +'add:Add dependencies to the project' \ +'remove:Remove dependencies from the project' \ +'version:Read or update the project'\''s version' \ +'sync:Update the project'\''s environment' \ +'lock:Update the project'\''s lockfile' \ +'export:Export the project'\''s lockfile to an alternate format' \ +'tree:Display the project'\''s dependency tree' \ +'tool:Run and install commands provided by Python packages' \ +'python:Manage Python versions and installations' \ +'pip:Manage Python packages with a pip-compatible interface' \ +'venv:Create a virtual environment' \ +'build:Build Python packages into source distributions and wheels' \ +'publish:Upload distributions to an index' \ +'build-backend:The implementation of the build backend' \ +'cache:Manage uv'\''s cache' \ +'self:Manage the uv executable' \ +'clean:Clear the cache, removing all entries or those linked to specific packages' \ +'generate-shell-completion:Generate shell completion' \ +'help:Display documentation for a command' \ + ) + _describe -t commands 'uv commands' commands "$@" +} +(( $+functions[_uv__add_commands] )) || +_uv__add_commands() { + local commands; commands=() + _describe -t commands 'uv add commands' commands "$@" +} +(( $+functions[_uv__build_commands] )) || +_uv__build_commands() { + local commands; commands=() + _describe -t commands 'uv build commands' commands "$@" +} +(( $+functions[_uv__build-backend_commands] )) || +_uv__build-backend_commands() { + local commands; commands=( +'build-sdist:PEP 517 hook \`build_sdist\`' \ +'build-wheel:PEP 517 hook \`build_wheel\`' \ +'build-editable:PEP 660 hook \`build_editable\`' \ +'get-requires-for-build-sdist:PEP 517 hook \`get_requires_for_build_sdist\`' \ +'get-requires-for-build-wheel:PEP 517 hook \`get_requires_for_build_wheel\`' \ +'prepare-metadata-for-build-wheel:PEP 517 hook \`prepare_metadata_for_build_wheel\`' \ +'get-requires-for-build-editable:PEP 660 hook \`get_requires_for_build_editable\`' \ +'prepare-metadata-for-build-editable:PEP 660 hook \`prepare_metadata_for_build_editable\`' \ + ) + _describe -t commands 'uv build-backend commands' commands "$@" +} +(( $+functions[_uv__build-backend__build-editable_commands] )) || +_uv__build-backend__build-editable_commands() { + local commands; commands=() + _describe -t commands 'uv build-backend build-editable commands' commands "$@" +} +(( $+functions[_uv__build-backend__build-sdist_commands] )) || +_uv__build-backend__build-sdist_commands() { + local commands; commands=() + _describe -t commands 'uv build-backend build-sdist commands' commands "$@" +} +(( $+functions[_uv__build-backend__build-wheel_commands] )) || +_uv__build-backend__build-wheel_commands() { + local commands; commands=() + _describe -t commands 'uv build-backend build-wheel commands' commands "$@" +} +(( $+functions[_uv__build-backend__get-requires-for-build-editable_commands] )) || +_uv__build-backend__get-requires-for-build-editable_commands() { + local commands; commands=() + _describe -t commands 'uv build-backend get-requires-for-build-editable commands' commands "$@" +} +(( $+functions[_uv__build-backend__get-requires-for-build-sdist_commands] )) || +_uv__build-backend__get-requires-for-build-sdist_commands() { + local commands; commands=() + _describe -t commands 'uv build-backend get-requires-for-build-sdist commands' commands "$@" +} +(( $+functions[_uv__build-backend__get-requires-for-build-wheel_commands] )) || +_uv__build-backend__get-requires-for-build-wheel_commands() { + local commands; commands=() + _describe -t commands 'uv build-backend get-requires-for-build-wheel commands' commands "$@" +} +(( $+functions[_uv__build-backend__prepare-metadata-for-build-editable_commands] )) || +_uv__build-backend__prepare-metadata-for-build-editable_commands() { + local commands; commands=() + _describe -t commands 'uv build-backend prepare-metadata-for-build-editable commands' commands "$@" +} +(( $+functions[_uv__build-backend__prepare-metadata-for-build-wheel_commands] )) || +_uv__build-backend__prepare-metadata-for-build-wheel_commands() { + local commands; commands=() + _describe -t commands 'uv build-backend prepare-metadata-for-build-wheel 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' \ + ) + _describe -t commands 'uv 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__dir_commands] )) || +_uv__cache__dir_commands() { + local commands; commands=() + _describe -t commands 'uv cache dir commands' commands "$@" +} +(( $+functions[_uv__cache__prune_commands] )) || +_uv__cache__prune_commands() { + local commands; commands=() + _describe -t commands 'uv cache prune commands' commands "$@" +} +(( $+functions[_uv__clean_commands] )) || +_uv__clean_commands() { + local commands; commands=() + _describe -t commands 'uv clean commands' commands "$@" +} +(( $+functions[_uv__export_commands] )) || +_uv__export_commands() { + local commands; commands=() + _describe -t commands 'uv export 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_commands] )) || +_uv__help_commands() { + local commands; commands=() + _describe -t commands 'uv help commands' commands "$@" +} +(( $+functions[_uv__init_commands] )) || +_uv__init_commands() { + local commands; commands=() + _describe -t commands 'uv init commands' commands "$@" +} +(( $+functions[_uv__lock_commands] )) || +_uv__lock_commands() { + local commands; commands=() + _describe -t commands 'uv lock commands' commands "$@" +} +(( $+functions[_uv__pip_commands] )) || +_uv__pip_commands() { + local commands; commands=( +'compile:Compile a \`requirements.in\` file to a \`requirements.txt\` or \`pylock.toml\` file' \ +'sync:Sync an environment with a \`requirements.txt\` or \`pylock.toml\` file' \ +'install:Install packages into an environment' \ +'uninstall:Uninstall packages from an environment' \ +'freeze:List, in requirements format, packages installed in an environment' \ +'list:List, in tabular format, packages installed in an environment' \ +'show:Show information about one or more installed packages' \ +'tree:Display the dependency tree for an environment' \ +'check:Verify installed packages have compatible dependencies' \ + ) + _describe -t commands 'uv pip 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__compile_commands] )) || +_uv__pip__compile_commands() { + local commands; commands=() + _describe -t commands 'uv pip compile 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__install_commands] )) || +_uv__pip__install_commands() { + local commands; commands=() + _describe -t commands 'uv pip install commands' commands "$@" +} +(( $+functions[_uv__pip__list_commands] )) || +_uv__pip__list_commands() { + local commands; commands=() + _describe -t commands 'uv pip list commands' commands "$@" +} +(( $+functions[_uv__pip__show_commands] )) || +_uv__pip__show_commands() { + local commands; commands=() + _describe -t commands 'uv pip show commands' commands "$@" +} +(( $+functions[_uv__pip__sync_commands] )) || +_uv__pip__sync_commands() { + local commands; commands=() + _describe -t commands 'uv pip sync commands' commands "$@" +} +(( $+functions[_uv__pip__tree_commands] )) || +_uv__pip__tree_commands() { + local commands; commands=() + _describe -t commands 'uv pip tree commands' commands "$@" +} +(( $+functions[_uv__pip__uninstall_commands] )) || +_uv__pip__uninstall_commands() { + local commands; commands=() + _describe -t commands 'uv pip uninstall commands' commands "$@" +} +(( $+functions[_uv__publish_commands] )) || +_uv__publish_commands() { + local commands; commands=() + _describe -t commands 'uv publish commands' commands "$@" +} +(( $+functions[_uv__python_commands] )) || +_uv__python_commands() { + local commands; commands=( +'list:List the available Python installations' \ +'install:Download and install Python versions' \ +'upgrade:Upgrade installed Python versions' \ +'find:Search for a Python installation' \ +'pin:Pin to a specific Python version' \ +'dir:Show the uv Python installation directory' \ +'uninstall:Uninstall Python versions' \ +'update-shell:Ensure that the Python executable directory is on the \`PATH\`' \ + ) + _describe -t commands 'uv python commands' commands "$@" +} +(( $+functions[_uv__python__dir_commands] )) || +_uv__python__dir_commands() { + local commands; commands=() + _describe -t commands 'uv python dir commands' commands "$@" +} +(( $+functions[_uv__python__find_commands] )) || +_uv__python__find_commands() { + local commands; commands=() + _describe -t commands 'uv python find commands' commands "$@" +} +(( $+functions[_uv__python__install_commands] )) || +_uv__python__install_commands() { + local commands; commands=() + _describe -t commands 'uv python install commands' commands "$@" +} +(( $+functions[_uv__python__list_commands] )) || +_uv__python__list_commands() { + local commands; commands=() + _describe -t commands 'uv python list commands' commands "$@" +} +(( $+functions[_uv__python__pin_commands] )) || +_uv__python__pin_commands() { + local commands; commands=() + _describe -t commands 'uv python pin commands' commands "$@" +} +(( $+functions[_uv__python__uninstall_commands] )) || +_uv__python__uninstall_commands() { + local commands; commands=() + _describe -t commands 'uv python uninstall commands' commands "$@" +} +(( $+functions[_uv__python__update-shell_commands] )) || +_uv__python__update-shell_commands() { + local commands; commands=() + _describe -t commands 'uv python update-shell commands' commands "$@" +} +(( $+functions[_uv__python__upgrade_commands] )) || +_uv__python__upgrade_commands() { + local commands; commands=() + _describe -t commands 'uv python upgrade commands' commands "$@" +} +(( $+functions[_uv__remove_commands] )) || +_uv__remove_commands() { + local commands; commands=() + _describe -t commands 'uv remove commands' commands "$@" +} +(( $+functions[_uv__run_commands] )) || +_uv__run_commands() { + local commands; commands=() + _describe -t commands 'uv run commands' commands "$@" +} +(( $+functions[_uv__self_commands] )) || +_uv__self_commands() { + local commands; commands=( +'update:Update uv' \ +'version:Display uv'\''s version' \ + ) + _describe -t commands 'uv self commands' commands "$@" +} +(( $+functions[_uv__self__update_commands] )) || +_uv__self__update_commands() { + local commands; commands=() + _describe -t commands 'uv self update commands' commands "$@" +} +(( $+functions[_uv__self__version_commands] )) || +_uv__self__version_commands() { + local commands; commands=() + _describe -t commands 'uv self version commands' commands "$@" +} +(( $+functions[_uv__sync_commands] )) || +_uv__sync_commands() { + local commands; commands=() + _describe -t commands 'uv sync commands' commands "$@" +} +(( $+functions[_uv__tool_commands] )) || +_uv__tool_commands() { + local commands; commands=( +'run:Run a command provided by a Python package' \ +'uvx:Run a command provided by a Python package.' \ +'install:Install commands provided by a Python package' \ +'upgrade:Upgrade installed tools' \ +'list:List installed tools' \ +'uninstall:Uninstall a tool' \ +'update-shell:Ensure that the tool executable directory is on the \`PATH\`' \ +'dir:Show the path to the uv tools directory' \ + ) + _describe -t commands 'uv tool commands' commands "$@" +} +(( $+functions[_uv__tool__dir_commands] )) || +_uv__tool__dir_commands() { + local commands; commands=() + _describe -t commands 'uv tool dir commands' commands "$@" +} +(( $+functions[_uv__tool__install_commands] )) || +_uv__tool__install_commands() { + local commands; commands=() + _describe -t commands 'uv tool install commands' commands "$@" +} +(( $+functions[_uv__tool__list_commands] )) || +_uv__tool__list_commands() { + local commands; commands=() + _describe -t commands 'uv tool list commands' commands "$@" +} +(( $+functions[_uv__tool__run_commands] )) || +_uv__tool__run_commands() { + local commands; commands=() + _describe -t commands 'uv tool run commands' commands "$@" +} +(( $+functions[_uv__tool__uninstall_commands] )) || +_uv__tool__uninstall_commands() { + local commands; commands=() + _describe -t commands 'uv tool uninstall commands' commands "$@" +} +(( $+functions[_uv__tool__update-shell_commands] )) || +_uv__tool__update-shell_commands() { + local commands; commands=() + _describe -t commands 'uv tool update-shell commands' commands "$@" +} +(( $+functions[_uv__tool__upgrade_commands] )) || +_uv__tool__upgrade_commands() { + local commands; commands=() + _describe -t commands 'uv tool upgrade commands' commands "$@" +} +(( $+functions[_uv__tool__uvx_commands] )) || +_uv__tool__uvx_commands() { + local commands; commands=() + _describe -t commands 'uv tool uvx commands' commands "$@" +} +(( $+functions[_uv__tree_commands] )) || +_uv__tree_commands() { + local commands; commands=() + _describe -t commands 'uv tree commands' commands "$@" +} +(( $+functions[_uv__venv_commands] )) || +_uv__venv_commands() { + local commands; commands=() + _describe -t commands 'uv venv 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 diff --git a/config/zsh/completions/_uvx b/config/zsh/completions/_uvx new file mode 100644 index 00000000..04562693 --- /dev/null +++ b/config/zsh/completions/_uvx @@ -0,0 +1,146 @@ +#compdef uvx + +autoload -U is-at-least + +_uvx() { + 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[@]}" : \ +'--from=[Use the given package to provide the command]:FROM:_default' \ +'*-w+[Run with the given packages installed]:WITH:_default' \ +'*--with=[Run with the given packages installed]:WITH:_default' \ +'*--with-editable=[Run with the given packages installed in editable mode]:WITH_EDITABLE:_default' \ +'*--with-requirements=[Run with all packages listed in the given \`requirements.txt\` files]:WITH_REQUIREMENTS:_default' \ +'*-c+[Constrain versions using the given requirements files]:CONSTRAINTS:_default' \ +'*--constraints=[Constrain versions using the given requirements files]:CONSTRAINTS:_default' \ +'*-b+[Constrain build dependencies using the given requirements files when building source distributions]:BUILD_CONSTRAINTS:_default' \ +'*--build-constraints=[Constrain build dependencies using the given requirements files when building source distributions]:BUILD_CONSTRAINTS:_default' \ +'*--overrides=[Override versions using the given requirements files]:OVERRIDES:_default' \ +'*--env-file=[Load environment variables from a \`.env\` file]:ENV_FILE:_files' \ +'*--index=[The URLs to use when resolving dependencies, in addition to the default index]:INDEX:_default' \ +'--default-index=[The URL of the default package index (by default\: )]:DEFAULT_INDEX:_default' \ +'-i+[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: )]:INDEX_URL:_default' \ +'--index-url=[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: )]:INDEX_URL:_default' \ +'*--extra-index-url=[(Deprecated\: use \`--index\` instead) Extra URLs of package indexes to use, in addition to \`--index-url\`]:EXTRA_INDEX_URL:_default' \ +'*-f+[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \ +'*--find-links=[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \ +'*-P+[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \ +'*--upgrade-package=[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \ +'*--reinstall-package=[Reinstall a specific package, regardless of whether it'\''s already installed. Implies \`--refresh-package\`]:REINSTALL_PACKAGE:_default' \ +'--index-strategy=[The strategy to use when resolving against multiple index URLs]:INDEX_STRATEGY:((first-index\:"Only use results from the first index that returns a match for a given package name" +unsafe-first-match\:"Search for every package name across all indexes, exhausting the versions from the first index before moving on to the next" +unsafe-best-match\:"Search for every package name across all indexes, preferring the "best" version found. If a package version is in multiple indexes, only look at the entry for the first index"))' \ +'--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"))' \ +'--resolution=[The strategy to use when selecting between the different compatible versions for a given package requirement]: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=[The strategy to use when considering pre-release versions]: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"))' \ +'--fork-strategy=[The strategy to use when selecting multiple versions of a given package across Python versions and platforms]:FORK_STRATEGY:((fewest\:"Optimize for selecting the fewest number of versions for each package. Older versions may be preferred if they are compatible with a wider range of supported Python versions or platforms" +requires-python\:"Optimize for selecting latest supported version of each package, for each supported Python version"))' \ +'*-C+[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \ +'*--config-setting=[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \ +'*--config-settings-package=[Settings to pass to the PEP 517 build backend for a specific package, specified as \`PACKAGE\:KEY=VALUE\` pairs]:CONFIG_SETTINGS_PACKAGE:_default' \ +'*--no-build-isolation-package=[Disable isolation when building source distributions for a specific package]:NO_BUILD_ISOLATION_PACKAGE:_default' \ +'--exclude-newer=[Limit candidate packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER:_default' \ +'*--exclude-newer-package=[Limit candidate packages for specific packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER_PACKAGE:_default' \ +'--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\` directory" +copy\:"Copy packages from the wheel into the \`site-packages\` directory" +hardlink\:"Hard link packages from the wheel into the \`site-packages\` directory" +symlink\:"Symbolically link packages from the wheel into the \`site-packages\` directory"))' \ +'*--no-build-package=[Don'\''t build source distributions for a specific package]:NO_BUILD_PACKAGE:_default' \ +'*--no-binary-package=[Don'\''t install pre-built wheels for a specific package]:NO_BINARY_PACKAGE:_default' \ +'*--refresh-package=[Refresh cached data for a specific package]:REFRESH_PACKAGE:_default' \ +'-p+[The Python interpreter to use to build the run environment.]:PYTHON:_default' \ +'--python=[The Python interpreter to use to build the run environment.]:PYTHON:_default' \ +'--generate-shell-completion=[]:GENERATE_SHELL_COMPLETION:(bash elvish fish nushell powershell zsh)' \ +'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \ +'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations" +managed\:"Prefer managed Python installations over system Python installations" +system\:"Prefer system Python installations over managed Python installations" +only-system\:"Only use system Python installations; never use managed Python installations"))' \ +'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed" +manual\:"Do not automatically download managed Python installations; require explicit installation" +never\:"Do not ever allow Python downloads"))' \ +'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((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"))' \ +'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \ +'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \ +'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \ +'--project=[Run the command within the given project directory]:PROJECT:_files' \ +'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \ +'--isolated[Run the tool in an isolated virtual environment, ignoring any already-installed tools]' \ +'--no-env-file[Avoid reading environment variables from a \`.env\` file]' \ +'--no-index[Ignore the registry index (e.g., PyPI), instead relying on direct URL dependencies and those provided via \`--find-links\`]' \ +'-U[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \ +'--upgrade[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \ +'--no-upgrade[]' \ +'--reinstall[Reinstall all packages, regardless of whether they'\''re already installed. Implies \`--refresh\`]' \ +'--no-reinstall[]' \ +'--pre[]' \ +'--no-build-isolation[Disable isolation when building source distributions]' \ +'--build-isolation[]' \ +'--compile-bytecode[Compile Python files to bytecode after installation]' \ +'--no-compile-bytecode[]' \ +'--no-sources[Ignore the \`tool.uv.sources\` table when resolving dependencies. Used to lock against the standards-compliant, publishable package metadata, as opposed to using any workspace, Git, URL, or local path sources]' \ +'--no-build[Don'\''t build source distributions]' \ +'--build[]' \ +'--no-binary[Don'\''t install pre-built wheels]' \ +'--binary[]' \ +'(--offline)--refresh[Refresh all cached data]' \ +'(--offline)--no-refresh[]' \ +'--show-resolution[Whether to show resolver and installer output from any environment modifications]' \ +'-V[Display the uvx version]' \ +'--version[Display the uvx version]' \ +'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \ +'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \ +'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \ +'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \ +'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \ +'(-v --verbose)*-q[Use quiet output]' \ +'(-v --verbose)*--quiet[Use quiet output]' \ +'(-q --quiet)*-v[Use verbose output]' \ +'(-q --quiet)*--verbose[Use verbose output]' \ +'(--color)--no-color[Disable colors]' \ +'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \ +'--no-native-tls[]' \ +'--offline[Disable network access]' \ +'--no-offline[]' \ +'--preview[Whether to enable all experimental preview features]' \ +'--no-preview[]' \ +'--show-settings[Show the resolved settings for the current command]' \ +'--no-progress[Hide all progress outputs]' \ +'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \ +'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \ +'-h[Display the concise help for this command]' \ +'--help[Display the concise help for this command]' \ +"*::external_command:_default" \ +&& ret=0 +} + +(( $+functions[_uvx_commands] )) || +_uvx_commands() { + local commands; commands=() + _describe -t commands 'uvx commands' commands "$@" +} + +if [ "$funcstack[1]" = "_uvx" ]; then + _uvx "$@" +else + compdef _uvx uvx +fi