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 a warning for available CLI updates #1749

Merged
merged 3 commits into from
Oct 31, 2024

Conversation

0237h
Copy link
Collaborator

@0237h 0237h commented Oct 25, 2024

Use @oclif/plugin-warn-if-update-available to display a message to the user in case the CLI can be updated.

screenshot_2024-10-25_15-47-59

@alex-pakalniskis Lots of options for update checking frequency and user notification frequency.
Mainly what we might want to discuss:

  • timeoutInDays: duration between update checks. Defaults to 60.
  • frequency: the frequency that the new version warning should be shown (on every command execution by default).

Closes #978

We might want to also signal how to upgrade in the message. For now it could be a link to the release section of the repo or to documentation showing how to upgrade the CLI. Later on we could have a graph update command like #1318 is suggesting.

Use `@oclif/plugin-warn-if-update-available` to display a message to the
user in case the CLI can be updated.
Copy link

changeset-bot bot commented Oct 25, 2024

🦋 Changeset detected

Latest commit: 69a7533

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@graphprotocol/graph-cli Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@0237h 0237h marked this pull request as ready for review October 25, 2024 21:57
@0237h 0237h requested a review from YaroShkvorets October 30, 2024 14:00
Copy link
Collaborator

@YaroShkvorets YaroShkvorets left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@0237h 0237h merged commit bf43cbf into graphprotocol:main Oct 31, 2024
9 checks passed
@0237h 0237h deleted the feat/cli-autoupdate branch October 31, 2024 14:54
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.

Warn users on newest CLI version
2 participants