From 224edca5a17d99fdecfe6854d98ef146da0156cb Mon Sep 17 00:00:00 2001 From: Gunther Brunner Date: Tue, 5 Aug 2014 15:06:12 +0900 Subject: [PATCH] Added update notifier. It will be used to notify when there is a new stf release. --- lib/cli.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/cli.js b/lib/cli.js index d21d1bae..83274f4c 100644 --- a/lib/cli.js +++ b/lib/cli.js @@ -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')