#40 adb: Complete sync command

This commit is contained in:
Julien Nicoulaud 2011-08-09 14:51:36 +02:00
parent a619c8eef0
commit 683f1d4a6c
1 changed files with 11 additions and 1 deletions

12
_adb
View File

@ -83,7 +83,10 @@ _adb() {
&& ret=0
;;
(sync)
_message '[ [-l] <directory> ]' && ret=0 # TODO Not implemented
_arguments \
'-l[list but do not copy]' \
'1: :_adb_sync_directories' \
&& ret=0
;;
(shell)
_message '[ <command> ]' && ret=0 # TODO Not implemented
@ -189,4 +192,11 @@ _adb_host_colon_ports() {
return ret
}
(( $+functions[_adb_sync_directories] )) ||
_adb_sync_directories() {
_alternative \
'partitions:partition:((system:the\ /system\ partition data:the\ /data\ partition))' \
'directories:directory:_files -/'
}
_adb "$@"