Skip to content

Commit

Permalink
feat: add --no-browse option (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eunjae Lee authored Aug 11, 2019
1 parent fb85025 commit 609a955
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/shipjs/src/flow/prepare.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ function printHelp() {
const firstRelease = `--first-release`;
const releaseCount = `--release-count ${underline('COUNT')}`;
const dryRun = `--dry-run`;
const all = [help, dir, yes, firstRelease, releaseCount, dryRun]
const noBrowse = `--no-browse`;
const all = [help, dir, yes, firstRelease, releaseCount, dryRun, noBrowse]
.map(x => `[${x}]`)
.join(' ');

Expand Down Expand Up @@ -66,6 +67,9 @@ function printHelp() {
indent(`-D, ${dryRun}`),
indent(' Displays the steps without actually doing them.'),
'',
indent(`-N, ${noBrowse}`),
indent(' Do not open a browser after creating a pull-request.'),
'',
];
print(messages.join('\n'));
}
Expand Down Expand Up @@ -428,6 +432,7 @@ const arg = {
'--first-release': Boolean,
'--release-count': Number,
'--dry-run': Boolean,
'--no-browse': Boolean,

// Aliases
'-d': '--dir',
Expand All @@ -436,6 +441,7 @@ const arg = {
'-f': '--first-release',
'-r': '--release-count',
'-D': '--dry-run',
'-N': '--no-browse',
};

export default {
Expand Down

0 comments on commit 609a955

Please sign in to comment.