Skip to content

Commit 9c19543

Browse files
committed
Merge pull request #10 from matiassingers/version-flag
Create version flag in CLI for outputting the current module version
2 parents 4d41353 + d30d3a5 commit 9c19543

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

Readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Install with `npm install travisjs -g`
1414
Usage: travisjs <command>
1515
1616
command
17+
version display the current version
1718
init initialize travis (hook and yml)
1819
badge generate badge
1920
open open travis page

bin/travisjs.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ var program = require('nomnom')
99
.script('travisjs')
1010
;
1111

12+
program.command('version')
13+
.help('display the current version')
14+
.callback(function () {
15+
return require('../package').version;
16+
})
17+
;
18+
1219
program.command('init')
1320
.help('initialize travis (hook and yml)')
1421
.callback(function (opts) {

0 commit comments

Comments
 (0)