mirror of
https://github.com/openstf/stf
synced 2025-10-03 17:59:28 +02:00
Added back new screen directive.
This commit is contained in:
parent
86a42639a1
commit
a2a00736b6
4 changed files with 35 additions and 9 deletions
16
lib/cli.js
16
lib/cli.js
|
@ -350,6 +350,8 @@ program
|
|||
.option('-c, --connect-push <endpoint>'
|
||||
, 'push endpoint'
|
||||
, cliutil.list)
|
||||
.option('-d, --disable-watch'
|
||||
, 'disable watching resources')
|
||||
.action(function(options) {
|
||||
if (!options.secret) {
|
||||
this.missingArgument('--secret')
|
||||
|
@ -374,6 +376,7 @@ program
|
|||
sub: options.connectSub
|
||||
, push: options.connectPush
|
||||
}
|
||||
, disableWatch: options.disableWatch
|
||||
})
|
||||
})
|
||||
|
||||
|
@ -445,9 +448,8 @@ program
|
|||
, 'provider name (or os.hostname())'
|
||||
, String
|
||||
, os.hostname())
|
||||
.option('-dw, --disable-watch'
|
||||
, Boolean
|
||||
, process.env.DISABLE_WATCH)
|
||||
.option('-d, --disable-watch'
|
||||
, 'disable watching resources')
|
||||
.action(function() {
|
||||
var log = logger.createLogger('cli')
|
||||
, options = cliutil.lastArg(arguments)
|
||||
|
@ -524,7 +526,13 @@ program
|
|||
, '--auth-url', util.format('http://localhost:%d/', options.authPort)
|
||||
, '--connect-sub', options.bindAppPub
|
||||
, '--connect-push', options.bindAppPull
|
||||
])
|
||||
].concat(function() {
|
||||
var extra = []
|
||||
if (options.disableWatch) {
|
||||
extra.push('--disable-watch')
|
||||
}
|
||||
return extra
|
||||
}()))
|
||||
.catch(function(err) {
|
||||
log.error('app died', err.stack)
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue