mirror of
https://github.com/openstf/stf
synced 2025-10-04 10:19:30 +02:00
add new device-reserve and device-release endpoints
This commit is contained in:
parent
04d410bc1d
commit
dccacea43f
4 changed files with 207 additions and 20 deletions
10
lib/cli.js
10
lib/cli.js
|
@ -871,15 +871,24 @@ program
|
|||
, 'secret (or $SECRET)'
|
||||
, String
|
||||
, process.env.SECRET)
|
||||
.option('-c, --connect-push <endpoint>'
|
||||
, 'push endpoint'
|
||||
, cliutil.list)
|
||||
.action(function(options) {
|
||||
if (!options.secret) {
|
||||
this.missingArgument('--secret')
|
||||
}
|
||||
if (!options.connectPush) {
|
||||
this.missingArgument('--connect-push')
|
||||
}
|
||||
|
||||
require('./units/api')({
|
||||
port: options.port
|
||||
, ssid: options.ssid
|
||||
, secret: options.secret
|
||||
, endpoints: {
|
||||
push: options.connectPush
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
|
@ -1328,6 +1337,7 @@ program
|
|||
'api'
|
||||
, '--port', options.apiPort
|
||||
, '--secret', options.authSecret
|
||||
, '--connect-push', options.bindAppPull
|
||||
])
|
||||
// websocket
|
||||
, procutil.fork(__filename, [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue