mirror of
https://github.com/openstf/stf
synced 2025-10-04 10:19:30 +02:00
Added update notifier.
It will be used to notify when there is a new stf release.
This commit is contained in:
parent
a8170e316b
commit
224edca5a1
1 changed files with 8 additions and 0 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue