diff --git a/_adb b/_adb index 2fc85033..951e5dff 100644 --- a/_adb +++ b/_adb @@ -116,7 +116,10 @@ _adb() { && ret=0 ;; (forward) - _message ' ' && ret=0 # TODO Not implemented + _arguments \ + '1: :_adb_local_forward_specs' \ + '2: :_adb_remote_forward_specs' \ + && ret=0 ;; (install) _message '[-l] [-r] [-s] ' && ret=0 # TODO Not implemented @@ -223,6 +226,20 @@ _adb_remote_commands() { _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] )) || _adb_sync_directories() { _alternative \