This commit is contained in:
Valentin Haenel
2015-02-10 12:14:53 +01:00
parent 45faad3f17
commit 37fb50af8b

38
_conda
View File

@@ -4,13 +4,13 @@
local state line context
local -A opt_args
local -a arguments
arguments=(
local -a opts
opts=(
'(-h --help)'{-h,--help}'[show this help message and exit]'
'(-v --version)'{-v,--version}"[show program's version number and exit]"
'(-v --version)'{-v,--version}'[show program''s version number and exit]'
)
_arguments -C \
_arguments -C $opts \
': :->command' \
'*:: :->subcmd'
@@ -18,30 +18,30 @@ case $state in
(command)
local -a package maint environment help config special
package=(
search : 'Search for packages and display their information.'
install : 'Install a list of packages into a specified conda environment.'
search:'Search for packages and display their information.'
install:'Install a list of packages into a specified conda environment.'
)
maint=(
update : 'Update conda packages.'
clean : 'Remove unused packages and caches.'
update:'Update conda packages.'
clean:'Remove unused packages and caches.'
)
environment=(
info : 'Display information about current conda install.'
create : 'Create a new conda environment from a list of specified packages.'
list : 'List linked packages in a conda environment.'
remove : 'Remove a list of packages from a specified conda environment.'
info:'Display information about current conda install.'
create:'Create a new conda environment from a list of specified packages.'
list:'List linked packages in a conda environment.'
remove:'Remove a list of packages from a specified conda environment.'
)
help=(
help : 'Displays a list of available conda commands and their help strings.'
help:'Displays a list of available conda commands and their help strings.'
)
config=(
config : 'Modify configuration values in .condarc.'
config:'Modify configuration values in .condarc.'
)
special=(
run : 'Launches an application installed with Conda.'
init : 'Initialize conda into a regular environment. (DEPRECATED)'
package : 'Low-level conda package utility. (EXPERIMENTAL)'
bundle : 'Create or extract a "bundle package" (EXPERIMENTAL)'
run:'Launches an application installed with Conda.'
init:'Initialize conda into a regular environment. (DEPRECATED)'
package:'Low-level conda package utility. (EXPERIMENTAL)'
bundle:'Create or extract a "bundle package" (EXPERIMENTAL)'
)
_describe -t package_commands "package commands" package
_describe -t maint_commands "maint commands" maint
@@ -53,7 +53,7 @@ case $state in
(subcmd)
case ${line[1]} in
(*)
# _arguments -C $arguments
#_arguments -C $opts
_path_files
;;
esac