05dfd0ae8520e58e852c574f55c83fe6f49fb189

Author
Marc Cornellà <marc.cornella@live.com>
Committer
Marc Cornellà <marc.cornella@live.com>
Date

Message

cargo: update completion to latest version (cdac4a8)

https://github.com/rust-lang/cargo/blob/cdac4a8/src/etc/_cargo

Diff

This diff is truncated to protect this page.

  1diff --git a/plugins/cargo/_cargo b/plugins/cargo/_cargo
  2index 395c517cd37e5a3e2e82d8b6db627b3a48ba9c85..12694901ed0464572c0a6d553a561ddcc88f1a9b 100644
  3--- a/plugins/cargo/_cargo
  4+++ b/plugins/cargo/_cargo
  5@@ -2,489 +2,367 @@
  6 
  7 autoload -U regexp-replace
  8 
  9-zstyle -T ':completion:*:*:cargo:*' tag-order && \
 10-  zstyle ':completion:*:*:cargo:*' tag-order 'common-commands'
 11-
 12 _cargo() {
 13-local context state state_descr line
 14-typeset -A opt_args
 15-
 16-# leading items in parentheses are an exclusion list for the arguments following that arg
 17-# See: http://zsh.sourceforge.net/Doc/Release/Completion-System.html#Completion-Functions
 18-#   - => exclude all other options
 19-#   1 => exclude positional arg 1
 20-#   * => exclude all other args
 21-#   +blah => exclude +blah
 22-_arguments \
 23-    '(- 1 *)'{-h,--help}'[show help message]' \
 24-    '(- 1 *)--list[list installed commands]' \
 25-    '(- 1 *)'{-V,--version}'[show version information]' \
 26-    {-v,--verbose}'[use verbose output]' \
 27-    --color'[colorization option]' \
 28-    '(+beta +nightly)+stable[use the stable toolchain]' \
 29-    '(+stable +nightly)+beta[use the beta toolchain]' \
 30-    '(+stable +beta)+nightly[use the nightly toolchain]' \
 31-    '1: :->command' \
 32-    '*:: :->args'
 33-
 34-case $state in
 35-    command)
 36-      _alternative 'common-commands:common:_cargo_cmds' 'all-commands:all:_cargo_all_cmds'
 37-      ;;
 38-
 39-    args)
 40-        case $words[1] in
 41-            bench)
 42-                _arguments \
 43-                    '--features=[space separated feature list]' \
 44-                    '--all-features[enable all available features]' \
 45-                    '(-h, --help)'{-h,--help}'[show help message]' \
 46-                    '(-j, --jobs)'{-j,--jobs}'[number of parallel jobs, defaults to # of CPUs]' \
 47-                    "${command_scope_spec[@]}" \
 48-                    '--manifest-path=[path to manifest]: :_files -/' \
 49-                    '--no-default-features[do not build the default features]' \
 50-                    '--no-run[compile but do not run]' \
 51-                    '(-p,--package)'{-p=,--package=}'[package to run benchmarks for]:packages:_get_package_names' \
 52-                    '--target=[target triple]' \
 53-                    '(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
 54-                    '(-q, --quiet)'{-q,--quiet}'[no output printed to stdout]' \
 55-                    '--color=:colorization option:(auto always never)' \
 56-                    ;;
 57-
 58-            build)
 59-                _arguments \
 60-                    '--features=[space separated feature list]' \
 61-                    '--all-features[enable all available features]' \
 62-                    '(-h, --help)'{-h,--help}'[show help message]' \
 63-                    '(-j, --jobs)'{-j,--jobs}'[number of parallel jobs, defaults to # of CPUs]' \
 64-                    "${command_scope_spec[@]}" \
 65-                    '--manifest-path=[path to manifest]: :_files -/' \
 66-                    '--no-default-features[do not build the default features]' \
 67-                    '(-p,--package)'{-p=,--package=}'[package to build]:packages:_get_package_names' \
 68-                    '--release=[build in release mode]' \
 69-                    '--target=[target triple]' \
 70-                    '(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
 71-                    '(-q, --quiet)'{-q,--quiet}'[no output printed to stdout]' \
 72-                    '--color=:colorization option:(auto always never)' \
 73-                    ;;
 74-
 75-            check)
 76-                _arguments \
 77-                    '--features=[space separated feature list]' \
 78-                    '--all-features[enable all available features]' \
 79-                    '(-h, --help)'{-h,--help}'[show help message]' \
 80-                    '(-j, --jobs)'{-j,--jobs}'[number of parallel jobs, defaults to # of CPUs]' \
 81-                    "${command_scope_spec[@]}" \
 82-                    '--manifest-path=[path to manifest]: :_files -/' \
 83-                    '--no-default-features[do not check the default features]' \
 84-                    '(-p,--package)'{-p=,--package=}'[package to check]:packages:_get_package_names' \
 85-                    '--release=[check in release mode]' \
 86-                    '--target=[target triple]' \
 87-                    '(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
 88-                    '(-q, --quiet)'{-q,--quiet}'[no output printed to stdout]' \
 89-                    '--color=:colorization option:(auto always never)' \
 90-                    ;;
 91-
 92-            clean)
 93-                _arguments \
 94-                    '(-h, --help)'{-h,--help}'[show help message]' \
 95-                    '--manifest-path=[path to manifest]: :_files -/' \
 96-                    '(-p,--package)'{-p=,--package=}'[package to clean]:packages:_get_package_names' \
 97-                    '(-q, --quiet)'{-q,--quiet}'[no output printed to stdout]' \
 98-                    '--release[whether or not to clean release artifacts]' \
 99-                    '--target=[target triple(default:all)]' \
100-                    '(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
101-                    '--color=:colorization option:(auto always never)' \
102-                    ;;
103-
104-            doc)