#40 adb: Complete forward command

This commit is contained in:
Julien Nicoulaud 2011-08-09 15:19:15 +02:00
parent ec02d24152
commit 1082ba24cd
1 changed files with 18 additions and 1 deletions

19
_adb
View File

@ -116,7 +116,10 @@ _adb() {
&& ret=0 && ret=0
;; ;;
(forward) (forward)
_message '<local> <remote>' && ret=0 # TODO Not implemented _arguments \
'1: :_adb_local_forward_specs' \
'2: :_adb_remote_forward_specs' \
&& ret=0
;; ;;
(install) (install)
_message '[-l] [-r] [-s] <file>' && ret=0 # TODO Not implemented _message '[-l] [-r] [-s] <file>' && ret=0 # TODO Not implemented
@ -223,6 +226,20 @@ _adb_remote_commands() {
_message 'remote command' _message 'remote command'
} }
(( $+functions[_adb_local_forward_specs] )) ||
_adb_local_forward_specs() {
# TODO Not implemented
# Doc here: http://developer.android.com/guide/developing/tools/adb.html#forwardports + adb help
_message 'local forward spec'
}
(( $+functions[_adb_remote_forward_specs] )) ||
_adb_remote_forward_specs() {
# TODO Not implemented
# Doc here: http://developer.android.com/guide/developing/tools/adb.html#forwardports + adb help
_message 'remote forward spec'
}
(( $+functions[_adb_sync_directories] )) || (( $+functions[_adb_sync_directories] )) ||
_adb_sync_directories() { _adb_sync_directories() {
_alternative \ _alternative \