We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d555134 commit d7125bdCopy full SHA for d7125bd
src/main.js
@@ -44,7 +44,7 @@ var argv = require('yargs')
44
describe: 'Diff input source',
45
nargs: 1,
46
type: 'string',
47
- choices: ['file', 'command'],
+ choices: ['file', 'command', 'stdin'],
48
default: 'command'
49
}
50
})
@@ -93,6 +93,8 @@ var argv = require('yargs')
93
function getInput() {
94
if (argv.input === 'file') {
95
return readFile(argv._[0]);
96
+ } else if (argv.input === 'stdin') {
97
+ return readFile('/dev/stdin');
98
} else {
99
var gitArgs;
100
if (argv._.length && argv._[0]) {
0 commit comments