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

Show update notifications when a new version of kit is available #418

Merged
merged 4 commits into from
Jul 19, 2024

Commits on Jul 18, 2024

  1. Add a notification when a newer version of Kit is available

    Print a message before running commands if we find a newer version of
    Kit is available on GitHub. If the current version of Kit doesn't look
    to be a regular release, or if any error occurs while checking, we don't
    print anything (but do print some debug logs).
    amisevsk committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    2f85175 View commit details
    Browse the repository at this point in the history
  2. Add ability to disable version notifications

    Add flag to version subcommand disable update notifications:
    
      kit version --show-update-notifications=false
    
    Settings is 'saved' by touching a file in $KITOPS_HOME
    
    Note, flag is attached to the 'version' subcommand as it seems there is
    no convenient way to specify it on the root command; it cannot be
    handled in PersistentPreRun and handling it in the root command's RunE
    breaks the help text for 'kit' (specifically, the 'usage' field)
    amisevsk committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    38cff18 View commit details
    Browse the repository at this point in the history
  3. Set timeout on update check

    amisevsk committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    60420e3 View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2024

  1. Configuration menu
    Copy the full SHA
    ac18d9d View commit details
    Browse the repository at this point in the history