#42 android: Complete options for the 'list' command

This commit is contained in:
Julien Nicoulaud 2011-08-21 11:46:47 +02:00
parent 3c796632f6
commit f97c5703c5
1 changed files with 23 additions and 19 deletions

View File

@ -64,27 +64,31 @@ _android() {
curcontext="${curcontext%:*:*}:android-cmd-$words[1]:" curcontext="${curcontext%:*:*}:android-cmd-$words[1]:"
case $words[1] in case $words[1] in
(list) (list)
_arguments \ _arguments -C \
'1: :_android_list_entities' \ '1: :_android_list_entities' \
'*::list-arg:->list-args' \
&& ret=0 && ret=0
# TODO Options: case "$state" in
# Action "list ": (list-args)
# No options case $words[1] in
# (avd|target)
# Action "list avd": _arguments \
# -0 --null Terminates lines with \0 instead of \n (e.g. for xargs -0). Only used by --compact. '(-0 --null)'{-0,--null}'[terminate lines with \0 instead of \n (e.g. for xargs -0)]' \
# -c --compact Compact output (suitable for scripts) '(-c --compact)'{-c,--compact}'[compact output (suitable for scripts)]' \
# && ret=0
# Action "list target": ;;
# -0 --null Terminates lines with \0 instead of \n (e.g. for xargs -0) Only used by --compact. (sdk)
# -c --compact Compact output (suitable for scripts) _arguments \
# '(-o --obsolete)'{-o,--obsolete}'[install obsolete packages]' \
# Action "list sdk": '--proxy-host[HTTP/HTTPS proxy host (overrides settings if defined)]:proxy host:_hosts' \
# -o --obsolete Installs obsolete packages '--proxy-port[HTTP/HTTPS proxy port (overrides settings if defined)]:proxy port number' \
# --proxy-host HTTP/HTTPS proxy host (overrides settings if defined) '(-s --no-https)'{-s,--no-https}'[use HTTP instead of HTTPS (the default) for downloads]' \
# --proxy-port HTTP/HTTPS proxy port (overrides settings if defined) '(-u --no-ui)'{-u,--no-ui}'[display list result on console (no GUI)]' \
# -s --no-https Uses HTTP instead of HTTPS (the default) for downloads && ret=0
# -u --no-ui Displays list result on console (no GUI) [Default: true] ;;
esac
;;
esac
;; ;;
(create) (create)
_arguments \ _arguments \