From 683f1d4a6c4fd828e2db81f211bb5e8c9181ba9e Mon Sep 17 00:00:00 2001 From: Julien Nicoulaud Date: Tue, 9 Aug 2011 14:51:36 +0200 Subject: [PATCH] #40 adb: Complete sync command --- _adb | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/_adb b/_adb index ec26d31..e997153 100644 --- a/_adb +++ b/_adb @@ -83,7 +83,10 @@ _adb() { && ret=0 ;; (sync) - _message '[ [-l] ]' && ret=0 # TODO Not implemented + _arguments \ + '-l[list but do not copy]' \ + '1: :_adb_sync_directories' \ + && ret=0 ;; (shell) _message '[ ]' && 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 "$@"