mirror of
https://github.com/zsh-users/zsh-completions.git
synced 2026-09-17 16:00:19 +00:00
#40 adb: Complete sync command
This commit is contained in:
@@ -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