Skip to content

Auto notify user how to get new version of kn CLI when using old version #1327

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

Open
csantanapr opened this issue May 24, 2021 · 1 comment
Open
Labels
kind/feature New feature or request triage/accepted Issues which should be fixed (post-triage)

Comments

@csantanapr
Copy link
Member

Feature request

The CLI to print a notification if a user is using the older version and is recommended to get the new version.

Use case

As kn CLI user I would like to get informed that I'm using an older version of the CLI and that a new one is available, and what command to I could use to quickly update based on the OS and method installation I used.

UI Example

I know there are different ways to implement provide a good UX.

And a few considerations and questions:

  • Feature on by default?
  • Can a user turn it off via env variable?
  • How often to do remote call to check for a new version?
  • How to handle operating system (yum, Linux, Windows, MacOS) and method (ie installshield, brew, etc) installation

I opening this issue because I just got notified for a CLI I use Github CLI gh which I installed via homebrew and I liked the experience.
image

Things I like about the UX:

  1. I got notified the is a new version
  2. Gave me the command to copy paste
  3. Color-coded (ie blue for version, yellow for link)
  4. Told me what version I have and what's the new version

As MVP and to get user feedback just implementing homebrew.
Not sure if this is something that homebrew does automatically or something we need to provide in the metadata.

@csantanapr csantanapr added the kind/feature New feature or request label May 24, 2021
@rhuss
Copy link
Contributor

rhuss commented Jun 29, 2021

Thanks for the heads up and I definitely find this useful. I don't think its a brew feature as it mention to call brew update first (so your local brew installation does not know about this). It looks like that gh itself is aware that is has been installed via brew, so recommends the update steps.

minikube does something similar by phoning home.

When we introduce such a feature it needs to be possible to disable for privacy concerned people.

wrt/ the color coding: I agree that this is helpful for visualizing important points, however this is a wider discussion how to introduce coloring in general (do you remember that hipster mode that I proposed a year ago or so ? 🤓

@rhuss rhuss added the triage/accepted Issues which should be fixed (post-triage) label Jul 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature New feature or request triage/accepted Issues which should be fixed (post-triage)
Projects
None yet
Development

No branches or pull requests

2 participants