UNPKG

@cjbarth/github-release-notes

Version:

Create a release from a tag and uses issues or commits to creating the release notes. It also can generate a CHANGELOG.md file based on the release notes (or generate a brand new).

12 lines 762 B
#!/usr/bin/env node var _commander = require("commander"); var _package = require("../package.json"); var gren = new _commander.Command("gren"); var argvWithVersion = function argvWithVersion(argvs) { var vPos = argvs.indexOf("-v"); if (vPos > -1) { argvs[vPos] = "-V"; } return argvs; }; gren.version(_package.version).description("gren (\uD83E\uDD16) ".concat(_package.description)).usage("<command> [options]").command("init", "Initialise the module options").alias("i").command("release", "Generate release notes and attach them to a tag").alias("r").command("changelog", "Create a CHANGELOG.md file, based on release notes").alias("c").command("examples", "Show few examples of stuff that you can do <cmd>").parse(argvWithVersion(process.argv));