From 72902f311ead3e121f93f3a8469ea5032e2fe6c6 Mon Sep 17 00:00:00 2001 From: Matias Singers Date: Tue, 27 Jan 2015 19:23:45 +0800 Subject: [PATCH 1/2] Create version command in CLI for outputting the current module version --- bin/travisjs.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bin/travisjs.js b/bin/travisjs.js index 298cc33..6442f94 100755 --- a/bin/travisjs.js +++ b/bin/travisjs.js @@ -9,6 +9,13 @@ var program = require('nomnom') .script('travisjs') ; +program.command('version') + .help('display the current version') + .callback(function () { + return require('../package').version; + }) + ; + program.command('init') .help('initialize travis (hook and yml)') .callback(function (opts) { From d30d3a51e0fe1b52f0f9999a8f1dd0c36341f1b5 Mon Sep 17 00:00:00 2001 From: Matias Singers Date: Sat, 31 Jan 2015 12:28:46 +0800 Subject: [PATCH 2/2] Update README.md with version command --- Readme.md | 1 + 1 file changed, 1 insertion(+) diff --git a/Readme.md b/Readme.md index aa1e4a4..eb11d0a 100644 --- a/Readme.md +++ b/Readme.md @@ -14,6 +14,7 @@ Install with `npm install travisjs -g` Usage: travisjs command + version display the current version init initialize travis (hook and yml) badge generate badge open open travis page