Skip to content

Commit

Permalink
cli: add update-notifier
Browse files Browse the repository at this point in the history
  • Loading branch information
Rowno committed Jan 19, 2015
1 parent 55e511e commit 1fca534
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@ var meow = require('meow');
var stdin = require('get-stdin');
var chalk = require('chalk');
var figures = require('figures');
var updateNotifier = require('update-notifier');
var medic = require('../');
var pkg = require('../package.json');

var HELP_FILE_PATH = path.join(__dirname, 'help.txt');


updateNotifier({pkg:pkg}).notify();

var cli = meow({
pkg: require('../package.json'),
pkg: pkg,
help: fs.readFileSync(HELP_FILE_PATH, {encoding:'utf8'}).trim()
}, {
alias: {
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"get-stdin": "^3.0.2",
"lodash": "^2.4.1",
"meow": "^2.1.0",
"request": "^2.51.0"
"request": "^2.51.0",
"update-notifier": "^0.3.0"
},
"devDependencies": {
"chai": "^1.9.1",
Expand Down

0 comments on commit 1fca534

Please sign in to comment.