#42 android: Add commands descriptions

This commit is contained in:
Julien Nicoulaud 2011-08-21 11:13:56 +02:00
parent 004f6f813c
commit 6b01b5f531
1 changed files with 22 additions and 23 deletions

View File

@ -103,12 +103,12 @@ _android() {
(( $+functions[_android_cmds] )) || (( $+functions[_android_cmds] )) ||
_android_cmds() { _android_cmds() {
local commands; commands=( local commands; commands=(
'list' 'list:list existing targets or virtual devices'
'create' 'create:create new virtual devices or projects'
'update' 'update:update a virtual device, project, SDK or adb'
'move' 'move:move a virtual device'
'delete' 'delete:delete a virtual device'
'display' 'display:display manager windows'
) )
_describe -t commands 'command' commands "$@" _describe -t commands 'command' commands "$@"
} }
@ -116,9 +116,8 @@ _android_cmds() {
(( $+functions[_android_list_entities] )) || (( $+functions[_android_list_entities] )) ||
_android_list_entities() { _android_list_entities() {
local entities; entities=( local entities; entities=(
'avd' 'avd:list existing Android Virtual Devices'
'target' 'target:list existing targets'
'sdk'
) )
_describe -t entities 'entity' entities "$@" _describe -t entities 'entity' entities "$@"
} }
@ -126,10 +125,10 @@ _android_list_entities() {
(( $+functions[_android_create_entities] )) || (( $+functions[_android_create_entities] )) ||
_android_create_entities() { _android_create_entities() {
local entities; entities=( local entities; entities=(
'avd' 'avd:create a new Android Virtual Device'
'project' 'project:create a new Android project'
'test-project' 'test-project:create a new Android project for a test package'
'lib-project' 'lib-project:create a new Android library project'
) )
_describe -t entities 'entity' entities "$@" _describe -t entities 'entity' entities "$@"
} }
@ -137,12 +136,12 @@ _android_create_entities() {
(( $+functions[_android_update_entities] )) || (( $+functions[_android_update_entities] )) ||
_android_update_entities() { _android_update_entities() {
local entities; entities=( local entities; entities=(
'avd' 'avd:update an Android Virtual Device to match the folders of a new SDK'
'project' 'project:update an Android project'
'test-project' 'test-project:update the Android project for a test package'
'lib-project' 'lib-project:update an Android library project'
'adb' 'adb:update adb to support the USB devices declared in the SDK add-ons'
'sdk' 'sdk:update the SDK by suggesting new platforms to install if available'
) )
_describe -t entities 'entity' entities "$@" _describe -t entities 'entity' entities "$@"
} }
@ -150,7 +149,7 @@ _android_update_entities() {
(( $+functions[_android_move_entities] )) || (( $+functions[_android_move_entities] )) ||
_android_move_entities() { _android_move_entities() {
local entities; entities=( local entities; entities=(
'avd' 'avd:move or rename an Android Virtual Device'
) )
_describe -t entities 'entity' commands "$@" _describe -t entities 'entity' commands "$@"
} }
@ -158,7 +157,7 @@ _android_move_entities() {
(( $+functions[_android_delete_entities] )) || (( $+functions[_android_delete_entities] )) ||
_android_delete_entities() { _android_delete_entities() {
local entities; entities=( local entities; entities=(
'avd' 'avd:delete an Android Virtual Device'
) )
_describe -t entities 'entity' entities "$@" _describe -t entities 'entity' entities "$@"
} }
@ -166,8 +165,8 @@ _android_delete_entities() {
(( $+functions[_android_display_entities] )) || (( $+functions[_android_display_entities] )) ||
_android_display_entities() { _android_display_entities() {
local entities; entities=( local entities; entities=(
'sdk' 'sdk:display the SDK Manager window'
'avd' 'avd:display the AVD Manager window'
) )
_describe -t entities 'entity' entities "$@" _describe -t entities 'entity' entities "$@"
} }