27 lines
1.1 KiB
Plaintext
27 lines
1.1 KiB
Plaintext
const pkg = require('../package.json');
|
|
const Log = require('./log');
|
|
|
|
const log = new Log();
|
|
|
|
const helpText = `Release It! v${pkg.version}
|
|
|
|
Usage: release-it <increment> [options]
|
|
|
|
Use e.g. "release-it minor" directly as shorthand for "release-it --increment=minor".
|
|
|
|
-c --config Path to local configuration options [default: ".release-it.json"]
|
|
-d --dry-run Do not touch or write anything, but show the commands
|
|
-h --help Print this help
|
|
-i --increment Increment "major", "minor", "patch", or "pre*" version; or specify version [default: "patch"]
|
|
--ci No prompts, no user interaction; activated automatically in CI environments
|
|
--only-version Prompt only version, no further interaction
|
|
-v --version Print release-it version number
|
|
-V --verbose Verbose output (user hooks output)
|
|
-VV Extra verbose output (also internal commands output)
|
|
|
|
For more details, please see https://github.com/release-it/release-it`;
|
|
|
|
module.exports.version = () => log.log(`v${pkg.version}`);
|
|
|
|
module.exports.help = () => log.log(helpText);
|