mirror of
https://github.com/zsh-users/zsh-completions.git
synced 2026-12-02 05:58:43 +08:00
#40 adb: Complete sync command
This commit is contained in:
1 parent
a619c8eef0
commit
683f1d4a6c
1 file changed
+11
-1
@@ -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 "$@"
|
||||
Reference in new issue
Block a user