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

This commit is contained in:
Julien Nicoulaud 2011-08-21 13:35:38 +02:00
parent c1c79d4549
commit bb121cb11b
1 changed files with 14 additions and 6 deletions

View File

@ -179,12 +179,20 @@ _android() {
_arguments -C \
'1: :_android_move_entities' \
'*::move-arg:->move-args' \
&& ret=0
# TODO Options:
# Action "move avd":
# -p --path Path to the AVD's new directory
# -n --name Name of the AVD to move or rename [required]
# -r --rename New name of the AVD
&& ret=0
case "$state" in
(move-args)
case $words[1] in
(avd)
_arguments \
'(-n --name)'{-n,--name}'[name of the AVD to move or rename]: :_android_avd_names' \
'(-p --path)'{-p,--path}'[path to the AVD'\''s new directory]: :_files -/' \
'(-r --rename)'{-r,--rename}'[new name of the AVD]:name' \
&& ret=0
;;
esac
;;
esac
;;
(delete)
_arguments -C \