Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Install with `npm install travisjs -g`
Usage: travisjs <command>

command
version display the current version
init initialize travis (hook and yml)
badge generate badge
open open travis page
Expand Down
7 changes: 7 additions & 0 deletions bin/travisjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down