mirror of
https://github.com/openstf/stf
synced 2025-10-03 17:59:28 +02:00
Add a simple STF console for testing without the app.
This commit is contained in:
parent
3be72ae8c9
commit
0bf07ab776
5 changed files with 222 additions and 6 deletions
21
lib/cli.js
21
lib/cli.js
|
@ -105,6 +105,27 @@ program
|
|||
})
|
||||
})
|
||||
|
||||
program
|
||||
.command('console')
|
||||
.description('start console')
|
||||
.option('-s, --connect-sub <endpoint>', 'sub endpoint', cliargs.list)
|
||||
.option('-p, --connect-push <endpoint>', 'push endpoint', cliargs.list)
|
||||
.action(function(options) {
|
||||
if (!options.connectSub) {
|
||||
this.missingArgument('--connect-sub')
|
||||
}
|
||||
if (!options.connectPush) {
|
||||
this.missingArgument('--connect-push')
|
||||
}
|
||||
|
||||
require('./roles/console')({
|
||||
endpoints: {
|
||||
sub: options.connectSub
|
||||
, push: options.connectPush
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
program
|
||||
.command('local [serial..]')
|
||||
.description('start everything locally')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue