Skip to content
This repository has been archived by the owner on Feb 5, 2018. It is now read-only.

Commit

Permalink
feat(cli): add warn function for interactive shell
Browse files Browse the repository at this point in the history
  • Loading branch information
stevemao committed Mar 10, 2015
1 parent f09ad60 commit 2508ae4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,13 @@ if (length > 0) {
processFile(0);
} else {
var commit = '';

var stream = through();

var rl = readline.createInterface({
input: process.stdin,
output: process.stdout,
terminal: true
});
cli.flags.warn = console.log.bind(console);

stream.pipe(conventionalCommitsParser(cli.flags))
.pipe(JSONStream.stringify('', '', ''))
Expand Down

0 comments on commit 2508ae4

Please sign in to comment.