implement completion for list

This commit is contained in:
Valentin Haenel
2015-02-10 15:43:11 +01:00
parent c68c9fa8dd
commit f65de52b7d

11
_conda
View File

@@ -103,6 +103,17 @@ case $state in
'--json[report all output as json.]' \
'*:packages:__conda_packages_search' \
;;
(list)
_arguments -C '(-h --help)'{-h,--help}'[show the help message and exit]' \
'(-n --name=)'{-n,--name=}'[install into given conda environment]:environment:__conda_envs' \
'(-p --prefix)'{-p,--prefix}'[full path to environment prefix]:path:_path_files' \
'--json[report all output as json.]' \
'(-c --canonical)'{-c,--canonical}'[output canonical names of packages only]' \
'(-e --export)'{-e,--export}'[output requirement string only]' \
'(-r --revisions)'{-r,--revision}'[list the revision history and exit]' \
'--no-pip[Do not include pip-only installed packages]' \
'*:regex:' \
;;
(*)
#_arguments -C $opts
_path_files