1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-04 18:29:17 +02:00

Added update notifier.

It will be used to notify when there is a new stf release.
This commit is contained in:
Gunther Brunner 2014-08-05 15:06:12 +09:00
parent a8170e316b
commit 224edca5a1

View file

@ -4,6 +4,7 @@ var os = require('os')
var program = require('commander')
var Promise = require('bluebird')
var ip = require('my-local-ip')
var updateNotifier = require('update-notifier')
var pkg = require('../package')
var cliutil = require('./util/cliutil')
@ -14,6 +15,13 @@ Promise.longStackTraces()
program
.version(pkg.version)
var notifier = updateNotifier({
packageName: pkg.name,
packageVersion: pkg.version
})
notifier.notify()
program
.command('provider [serial..]')
.description('start provider')