#40 adb: Complete sync command

This commit is contained in:
Julien Nicoulaud
2011-08-09 15:41:41 +02:00
parent a619c8eef0
commit 683f1d4a6c
+11 -1
View File
@@ -83,7 +83,10 @@ _adb() {
&& ret=0 && ret=0
;; ;;
(sync) (sync)
_message '[ [-l] <directory> ]' && ret=0 # TODO Not implemented _arguments \
'-l[list but do not copy]' \
'1: :_adb_sync_directories' \
&& ret=0
;; ;;
(shell) (shell)
_message '[ <command> ]' && ret=0 # TODO Not implemented _message '[ <command> ]' && ret=0 # TODO Not implemented
@@ -189,4 +192,11 @@ _adb_host_colon_ports() {
return ret return ret
} }
(( $+functions[_adb_sync_directories] )) ||
_adb_sync_directories() {
_alternative \
'partitions:partition:((system:the\ /system\ partition data:the\ /data\ partition))' \
'directories:directory:_files -/'
}
_adb "$@" _adb "$@"