Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BREAKING CHANGE: add new update features #368

Merged
merged 17 commits into from
Feb 11, 2022
Merged

Conversation

mdonnalley
Copy link
Contributor

@mdonnalley mdonnalley commented Feb 1, 2022

  • Adds --version flag
  • Adds --interactive flag
  • Adds --hard flag
  • Adds hidden --available flag
  • Removes --from-local (this is a breaking change)
  • Fixes update logic. The original PR to remove the legacy update logic actually removed the new logic instead of the legacy.
  • Removes unnecessary reexec method
  • General cleanup and refactoring

Usage

update the oclif-example CLI

USAGE
  $ oclif-example update [CHANNEL] [--version <value> | --interactive] [--hard]

FLAGS
  --hard             Remove all existing versions before updating to new version.
  --interactive      Interactively select version to install. This is ignored if a channel is provided.
  --version=<value>  Install a specific version.

DESCRIPTION
  update the oclif-example CLI

EXAMPLES
  Update to the stable channel:

    $ oclif-example update stable

  Update to a specific version:

    $ oclif-example update --version 1.0.0

  Interactively select version:

    $ oclif-example update --interactive

  Remove all existing versions and install stable channel version:

    $ oclif-example update stable --hard

  Remove all existing versions and install specific version:

    $ oclif-example update --version 1.0.0 --hard

@W-9325156@
@W-9303798@

@mdonnalley mdonnalley self-assigned this Feb 1, 2022
@mdonnalley mdonnalley force-pushed the mdonnalley/specify-version branch from 21f5e68 to c8e1045 Compare February 1, 2022 03:15
peternhale
peternhale previously approved these changes Feb 1, 2022
@mdonnalley mdonnalley changed the title feat: add --version to update command BREAKING CHANGE: add new update features Feb 1, 2022
@mdonnalley mdonnalley requested a review from mshanemc February 1, 2022 20:20
src/update.ts Outdated Show resolved Hide resolved
@mdonnalley mdonnalley requested a review from peternhale February 8, 2022 16:51
peternhale
peternhale previously approved these changes Feb 8, 2022
@peternhale peternhale merged commit 091c176 into main Feb 11, 2022
@mdonnalley mdonnalley deleted the mdonnalley/specify-version branch February 11, 2022 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants