#42 android: Complete options for the 'move' command
This commit is contained in:
parent
c1c79d4549
commit
bb121cb11b
20
_android
20
_android
|
|
@ -179,12 +179,20 @@ _android() {
|
||||||
_arguments -C \
|
_arguments -C \
|
||||||
'1: :_android_move_entities' \
|
'1: :_android_move_entities' \
|
||||||
'*::move-arg:->move-args' \
|
'*::move-arg:->move-args' \
|
||||||
&& ret=0
|
&& ret=0
|
||||||
# TODO Options:
|
case "$state" in
|
||||||
# Action "move avd":
|
(move-args)
|
||||||
# -p --path Path to the AVD's new directory
|
case $words[1] in
|
||||||
# -n --name Name of the AVD to move or rename [required]
|
(avd)
|
||||||
# -r --rename New name of the 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)
|
(delete)
|
||||||
_arguments -C \
|
_arguments -C \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue