add groups feature

This commit is contained in:
Denis barbaron
2019-06-12 10:29:07 +02:00
parent 6fd750dad5
commit 7f5dc4c152
119 changed files with 12416 additions and 402 deletions

View File

@@ -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
}
})
}