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

Added notice for when a new version is available to upgrade to #321

Merged
merged 3 commits into from
Apr 4, 2024

Conversation

Xemdo
Copy link
Contributor

@Xemdo Xemdo commented Apr 3, 2024

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Problem/Feature

People are not always aware when a new version is available. This feature will notify the user (once a day) when the version of the Twitch CLI they're using is out of date, and give instructions on how to update.

Description of Changes:

  • Added update notice after executing any command successfully
  • Added ability to disable these notices
    • Automatically disabled in CI/CD environments, thanks to the CI env variable
    • Can be disabled by DISABLE_UPDATE_CHECKS in the config file, or TWITCH_DISABLE_UPDATE_CHECKS env variable
  • Only executes once a day, which is checked by LAST_UPDATE_CHECK in the config file

Checklist

  • My code follows the Contribution Guide
  • I have self-reviewed the changes being requested
  • I have made comments on pieces of code that may be difficult to understand for other editors
  • I have updated the documentation (if applicable)

@Xemdo Xemdo merged commit 83b47aa into main Apr 4, 2024
8 checks passed
@Xemdo Xemdo deleted the update-checker branch April 4, 2024 03:48
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.

1 participant