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

Add @oclif/plugin-warn-if-update-available #156

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Computroniks
Copy link
Contributor

Summary

This will allow users to be alerted when a new version of the CLI is released. The CLI will poll the registry a maximum of once every 7 days when the user runs a command. If the user is running an outdated version, a warning will be printed to STDERR. It should be noted that this warning will be printed even if --json is passed so users should make sure to only read from STDOUT if they are fetching the data (this should be the default for any ordinary use case).

Type

  • Feature
  • Bug Fix
  • Breaking Change

Usage

Screenshots

image

Self Review

  • I have run npm run test and it generates no new errors or warnings
  • I have tested my code to ensure it functions as intended

This will allow users to be alerted when a new version of the CLI is released. The CLI will poll the registry a maximum of once every 7 days when the user runs a command. If the user is running an outdated version, a warning will be printed to STDERR. It should be noted that this warning will be printed even if --json is passed so users should make sure to only read from STDOUT if they are fetching the data (this should be the default for any ordinary use case).

Signed-off-by: Matthew Nickson <[email protected]>
@Computroniks Computroniks added the feature New feature or request label Jan 5, 2024
@Computroniks Computroniks added this to the v0.4.0 milestone Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant