mirror of
https://github.com/openstf/stf
synced 2025-10-04 10:19:30 +02:00
Allow adb connect
URL to be customized.
This commit is contained in:
parent
7eb6f8f871
commit
caf8d35eb7
4 changed files with 47 additions and 2 deletions
10
lib/cli.js
10
lib/cli.js
|
@ -64,6 +64,10 @@ program
|
|||
, 'screen WebSocket URL pattern'
|
||||
, String
|
||||
, 'ws://${publicIp}:${publicPort}')
|
||||
.option('--connect-url-pattern <pattern>'
|
||||
, 'adb connect URL pattern'
|
||||
, String
|
||||
, '${publicIp}:${publicPort}')
|
||||
.action(function() {
|
||||
var serials = cliutil.allUnknownArgs(arguments)
|
||||
, options = cliutil.lastArg(arguments)
|
||||
|
@ -101,6 +105,7 @@ program
|
|||
, '--adb-host', options.adbHost
|
||||
, '--adb-port', options.adbPort
|
||||
, '--screen-ws-url-pattern', options.screenWsUrlPattern
|
||||
, '--connect-url-pattern', options.connectUrlPattern
|
||||
, '--heartbeat-interval', options.heartbeatInterval
|
||||
])
|
||||
}
|
||||
|
@ -131,6 +136,10 @@ program
|
|||
.option('--connect-port <port>'
|
||||
, 'port allocated to adb connect'
|
||||
, Number)
|
||||
.option('--connect-url-pattern <pattern>'
|
||||
, 'adb connect URL pattern'
|
||||
, String
|
||||
, '${publicIp}:${publicPort}')
|
||||
.option('--public-ip <ip>'
|
||||
, 'public ip for global access'
|
||||
, String
|
||||
|
@ -192,6 +201,7 @@ program
|
|||
, adbPort: options.adbPort
|
||||
, screenWsUrlPattern: options.screenWsUrlPattern
|
||||
, screenPort: options.screenPort
|
||||
, connectUrlPattern: options.connectUrlPattern
|
||||
, connectPort: options.connectPort
|
||||
, heartbeatInterval: options.heartbeatInterval
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue