1
0
Fork 0
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:
Simo Kinnunen 2014-01-14 18:41:48 +09:00
parent 3be72ae8c9
commit 0bf07ab776
5 changed files with 222 additions and 6 deletions

View file

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