mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 06:53:20 +02:00
add groups feature
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
/**
|
||||
* Copyright © 2019 contains code contributed by Orange SA, authors: Denis Barbaron - Licensed under the Apache license 2.0
|
||||
**/
|
||||
|
||||
module.exports.command = 'api'
|
||||
|
||||
module.exports.describe = 'Start an API unit.'
|
||||
@@ -18,6 +22,18 @@ module.exports.builder = function(yargs) {
|
||||
, array: true
|
||||
, demand: true
|
||||
})
|
||||
.option('connect-push-dev', {
|
||||
alias: 'pd'
|
||||
, describe: 'Device-side ZeroMQ PULL endpoint to connect to.'
|
||||
, array: true
|
||||
, demand: true
|
||||
})
|
||||
.option('connect-sub-dev', {
|
||||
alias: 'sd'
|
||||
, describe: 'Device-side ZeroMQ PUB endpoint to connect to.'
|
||||
, array: true
|
||||
, demand: true
|
||||
})
|
||||
.option('port', {
|
||||
alias: 'p'
|
||||
, describe: 'The port to bind to.'
|
||||
@@ -53,6 +69,8 @@ module.exports.handler = function(argv) {
|
||||
, endpoints: {
|
||||
push: argv.connectPush
|
||||
, sub: argv.connectSub
|
||||
, pushdev: argv.connectPushDev
|
||||
, subdev: argv.connectSubDev
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user