mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 09:53:28 +02:00
Added back new screen directive.
This commit is contained in:
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)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user