Skip to content

Commit

Permalink
improve Upgrade command so -t accepts any string (#1270)
Browse files Browse the repository at this point in the history
* rw upgrade -t accepts string

* Update upgrade.js

* add example

* Update upgrade.js
  • Loading branch information
thedavidprice committed Oct 8, 2020
1 parent dd52e21 commit e69bb0b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/cli/src/commands/upgrade.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,19 @@ export const description = 'Upgrade all @redwoodjs packages via interactive CLI'

export const builder = (yargs) => {
yargs
.example(
'rw upgrade -t 0.20.1-canary.5',
'Specify a version. URL for Version History:\nhttps://www.npmjs.com/package/@redwoodjs/core'
)
.option('dry-run', {
alias: 'd',
description: 'Check for outdated packages without upgrading',
type: 'boolean',
})
.option('tag', {
alias: 't',
choices: ['canary', 'rc'],
description:
'WARNING: Unstable releases! Force upgrades packages to the most recent version for the given --tag',
'[choices: "canary", "rc", or specific-version (see example below)] WARNING: "canary" and "rc" tags are unstable releases!',
type: 'string',
})
.epilogue(
Expand Down

0 comments on commit e69bb0b

Please sign in to comment.