From c609595671020ed79a92e4de22454930f9b3288b Mon Sep 17 00:00:00 2001 From: stvnwrgs Date: Thu, 11 Aug 2016 11:05:26 +0200 Subject: [PATCH] chore: removed --next and --actual --- index.js | 30 ++++-------------------------- test.js | 13 ------------- 2 files changed, 4 insertions(+), 39 deletions(-) diff --git a/index.js b/index.js index b00cb9f1f..a3cb94ed1 100755 --- a/index.js +++ b/index.js @@ -52,20 +52,6 @@ var argv = require('yargs') default: 'beta', global: true }) - .option('actual', { - alias: 'a', - describe: 'get the actual version', - type: 'boolean', - default: false, - global: true - }) - .option('next', { - alias: 'x', - describe: 'get the next version', - type: 'boolean', - default: false, - global: true - }) .help() .alias('help', 'h') .example('$0', 'Update changelog and tag release') @@ -90,14 +76,6 @@ conventionalRecommendedBump({ console.error(chalk.red(err.message)) return } - if (argv.actual) { - console.log(pkg.version) - return - } - if (argv.next) { - console.log(getNextVersion(release)) - return - } var newVersion = pkg.version if (!argv.firstRelease) { newVersion = getNextVersion(release) @@ -133,10 +111,10 @@ function outputChangelog (argv, cb) { var changelogStream = conventionalChangelog({ preset: 'angular' }) - .on('error', function (err) { - console.error(chalk.red(err.message)) - process.exit(1) - }) + .on('error', function (err) { + console.error(chalk.red(err.message)) + process.exit(1) + }) changelogStream.on('data', function (buffer) { content += buffer.toString() diff --git a/test.js b/test.js index 27d99f242..68263025f 100644 --- a/test.js +++ b/test.js @@ -151,19 +151,6 @@ describe('cli', function () { }) }) - describe('dry runs', function () { - it('returns the current version when executed with -a', function () { - writePackageJson('1.0.0') - execCli('-a').stdout.should.equal('1.0.0\n') - }) - - it('returns the current version when executed with -a', function () { - writePackageJson('1.0.0') - commit('feat: first commit') - execCli('-x').stdout.should.equal('1.1.0\n') - }) - }) - describe('prerelease', function () { it('creates a prerelease when executed with --pre-release and default tag', function () { writePackageJson('1.0.0')