knative / client

Knative developer experience, docs, reference Knative CLI implementation
Apache License 2.0
353 stars 261 forks source link

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

Open csantanapr opened 3 years ago

csantanapr commented 3 years ago

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:

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.

rhuss commented 3 years ago

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 ? 🤓