UNPKG

1.06 kBJavaScriptView Raw
1const pkg = require('../package.json');
2const Log = require('./log');
3
4const log = new Log();
5
6const helpText = `Release It! v${pkg.version}
7
8 Usage: release-it <increment> [options]
9
10 Use e.g. "release-it minor" directly as shorthand for "release-it --increment=minor".
11
12 -c --config Path to local configuration options [default: ".release-it.json"]
13 -d --dry-run Do not touch or write anything, but show the commands
14 -h --help Print this help
15 -i --increment Increment "major", "minor", "patch", or "pre*" version; or specify version [default: "patch"]
16 --ci No questions asked. Activated automatically in CI environments.
17 -v --version Print version number
18 -V --verbose Verbose output (user hooks output)
19 -VV Extra verbose output (also internal commands output)
20
21For more details, please see https://github.com/release-it/release-it`;
22
23module.exports.version = () => log.log(`v${pkg.version}`);
24
25module.exports.help = () => log.log(helpText);