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

未关闭
#235 1 条评论 2 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@feedmeapples 已经在做这个了。

开始于 2023年5月10日。

  • #1122 来自 @chaptersix —— 已关闭,未合并

评估

这个 Issue 还没有评估数据。

描述

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
主要语言
Go
星标
390
派生
123
平均合并
2 天 9 小时
30 天内合并 PR
13

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

temporalio/cli 的其他 Issue

查看 temporalio/cli 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。