[Feature Request] Check and inform user when newer version is available

Aperta
#235 1 commento 2 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@feedmeapples ci sta già lavorando.

Dal 10/5/2023.

  • #1122 di @chaptersix — chiusa senza merge

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

enhancement
Is your feature request related to a problem? Please describe.

I don't always remember to check this repo to see if a newer version is available, and so just recently spent a bunch of time investigating an issue that turns out to have been solved since I last upgraded. In retrospect, "check before you test" may be somewhat reasonable while this project is <1.0, but as the time between versions inevitably increases, users will more frequently end up in the same "oh shoot, I should have checked for upgrades first" camp as I did.

Describe the solution you'd like

A message or similar output on start or on --version that informs of new releases of the CLI. Added bonus: a built-in self-upgrade command. Alternate: like the pip example below, include the command to upgrade in the output for easy copy-pasta.

Additional context

The message I'm envisioning is similar to what pip gives:

[notice] A new release of pip is available: 23.0.1 -> 23.1.2
[notice] To update, run: pip install --upgrade pip
Lingua principale
Go
Stelle
390
Fork
123
Merge medio
2g 9h
PR unite (30g)
13

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di temporalio/cli

Tutte le issue di temporalio/cli

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.