all the other options for install

This commit is contained in:
Valentin Haenel
2015-02-10 15:07:53 +01:00
parent 349380f99e
commit bb354b860d

28
_conda
View File

@@ -11,6 +11,15 @@ __conda_envs(){
_describe -t envs 'conda environments' envs
}
__conda_channels(){
local -a channels
channels=("default\nsystem")
_describe -t channels 'conda channels' channels
}
local -a opts
opts=(
'(-h --help)'{-h,--help}'[show this help message and exit]'
@@ -61,6 +70,25 @@ case $state in
case ${line[1]} in
(install)
_arguments '(-n --name=)'{-n,--name=}'[install into given conda environment]:environment:__conda_envs' \
'(-h --help)'{-h,--help}'[show the help message and exit]' \
'--revision[revert to the specified revision]:revision' \
'(-y --yes)'{-y,--yes}'[do not ask for confirmation]' \
'--dry-run[only display what would have been done]' \
'--file[read package versions from file]:file:_path_files' \
'--unknown[use index metadata from the local package cache]' \
'--no-deps[do not install dependencies]' \
'(-m --mkdir)'{-m,--mkdir}'[create prefix directory if necessary]' \
'--use-index-cache[use cache of channel index files]' \
'--use-local[use locally built packages]' \
'--offline[offline mode, don''t connect to internet]' \
'--no-pin[ignore pinned file]' \
'(-c --channel)'{-c,--channel}'[additional channel to search for packages]:channel:__conda_channels'\
'--override-channels [do not search default or .condarc channels]' \
'(-p --prefix)'{-p,--prefix}'[full path to environment prefix]:path:_path_files' \
'(-q --quiet)'{-q,--quiet}'[do not display progress bar]'\
'--copy[Install all packages using copies instead of hard- or soft-linking]' \
'--alt-hint[Use an alternate algorithm to generate an unsatisfiable hint]' \
'--json[report all output as json.]' \
;;
(*)
#_arguments -C $opts