ac8915d43f0e8de9294c8552dc338ecc9993acd2

Author
Diego Said Anaya Mancilla <mancilladev@gmail.com>
Committer
Marc Cornellà <marc.cornella@live.com>
Date

Message

Update pip plugin to last stable release (#5472)

Update pip plugin to last stable release

Diff

 1diff --git a/plugins/pip/_pip b/plugins/pip/_pip
 2index cb155e5f40eae2f921e68a7d41899f78a35c3d31..732ffabea646920c878b0b14c752726c1a376215 100644
 3--- a/plugins/pip/_pip
 4+++ b/plugins/pip/_pip
 5@@ -1,7 +1,8 @@
 6 #compdef pip pip2 pip-2.7 pip3 pip-3.2 pip-3.3 pip-3.4
 7 #autoload
 8 
 9-# pip zsh completion, based on homebrew completion
10+# pip zsh completion, based on last stable release (pip8)
11+# homebrew completion and backwards compatibility
12 
13 _pip_all() {
14   # we cache the list of packages (originally from the macports plugin)
15@@ -17,30 +18,43 @@ _pip_installed() {
16 
17 local -a _1st_arguments
18 _1st_arguments=(
19-  'bundle:create pybundles (archives containing multiple packages)'
20+  'install:install packages'
21+  'download:download packages'
22+  'uninstall:uninstall packages'
23   'freeze:output all currently installed packages (exact versions) to stdout'
24-  'help:show available commands'
25+  'list:list installed packages'
26   'show:show information about installed packages'
27-  'install:install packages'
28   'search:search PyPI'
29-  'uninstall:uninstall packages'
30-  'unzip:unzip individual packages'
31-  'zip:zip individual packages'
32+  'wheel:build individual wheel archives for your requirements and dependencies'
33+  'hash:compute a hash of a local package archive'
34+  'help:show available commands'
35+  'bundle:create pybundles (archives containing multiple packages)(deprecated)'
36+  'unzip:unzip individual packages(deprecated)'
37+  'zip:zip individual packages(deprecated)'
38 )
39 
40 local expl
41 local -a all_pkgs installed_pkgs
42 
43 _arguments \
44-  '(--version)--version[show version number of program and exit]' \
45   '(-h --help)'{-h,--help}'[show help]' \
46-  '(-E --environment)'{-E,--environment}'[virtualenv environment to run pip in]' \
47-  '(-s --enable-site-packages)'{-s,--enable-site-packages}'[include site-packages in virtualenv]' \
48+  '(--isolated)--isolated[run pip in isolated mode, ignores environment variables and user configuration]' \
49   '(-v --verbose)'{-v,--verbose}'[give more output]' \
50+  '(-V --version)'{-V,--version}'[show version number of program and exit]' \
51   '(-q --quiet)'{-q,--quiet}'[give less output]' \
52   '(--log)--log[log file location]' \
53   '(--proxy)--proxy[proxy in form user:passwd@proxy.server:port]' \
54+  '(--retries)--retries[max number of retries per connection (default 5 times)]' \
55   '(--timeout)--timeout[socket timeout (default 15s)]' \
56+  '(--exists-action)--exists-action[default action when a path already exists: (s)witch, (i)gnore, (w)ipe, (b)ackup]' \
57+  '(--trusted-host)--trusted-host[mark this host as trusted]' \
58+  '(--cert)--cert[path to alternate CA bundle]' \
59+  '(--client-cert)--client-cert[path to SSL client certificate]' \
60+  '(--cache-dir)--cache-dir[store the cache data in specified directory]' \
61+  '(--no-cache-dir)--no-cache-dir[disable de cache]' \
62+  '(--disable-pip-version-check)--disable-pip-version-check[do not check periodically for new pip version downloads]' \
63+  '(-E --environment)'{-E,--environment}'[virtualenv environment to run pip in (deprecated)]' \
64+  '(-s --enable-site-packages)'{-s,--enable-site-packages}'[include site-packages in virtualenv (deprecated)]' \
65   '*:: :->subcmds' && return 0
66 
67 if (( CURRENT == 1 )); then
68@@ -56,7 +70,7 @@ case "$words[1]" in
69     _arguments \
70       '(-l --local)'{-l,--local}'[report only virtualenv packages]' ;;
71   install)
72-  	_arguments \
73+    _arguments \
74       '(-U --upgrade)'{-U,--upgrade}'[upgrade all packages to the newest available version]' \
75       '(-f --find-links)'{-f,--find-links}'[URL for finding packages]' \
76       '(-r --requirement)'{-r,--requirement}'[Requirements file for packages to install]:File:_files' \