2019-08-22 14:01:53 +08:00

17 lines
341 B
JavaScript

#!/usr/bin/env node
const commander = require('commander');
const changelog = require('./changelog');
const commitLint = require('./commit-lint');
commander
.command('changelog <dir>')
.option('--tag [tag]', 'Since tag')
.action(changelog);
commander
.command('commit-lint')
.action(commitLint);
commander.parse(process.argv);