[Feature Request] Add `xtool update` command for automatic CLI updates
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
調査の方向性
Start by reading the CLI command definitions and release packaging workflow to see how xtool exposes commands and names downloadable binaries; those entry points are not identified in the issue. Then assess version lookup, platform and architecture selection, checksum verification, and safe executable replacement. Done means xtool update installs the latest stable release and --check reports availability without installing, with failures handled safely.
索引モデルが issue の本文から書いたものです。
説明
Feature Request
Description
It would be great to have a built-in xtool update command that allows users to update xtool directly from the CLI without manually downloading and replacing the executable.
Currently, updating a manually installed version can require visiting GitHub Releases, downloading the correct binary for the system architecture, and replacing the existing installation.
A built-in updater would make this process much easier, especially for Linux and WSL users.
Proposed Solution
Add the following commands:
xtool update
Automatically check for the latest stable release and install it if a newer version is available.
xtool update --check
Check whether a newer version is available without installing it.
Expected Behavior
- Detect the currently installed xtool version.
- Fetch the latest release information from GitHub.
- Compare the installed version with the latest release.
- Detect the user's operating system and architecture.
- Download the appropriate release binary.
- Verify the downloaded binary's integrity when checksums are available.
- Safely replace the existing executable.
- Display a success message with the updated version.
Example output:
$ xtool update
Checking for updates...
Current version: 1.x.x
Latest version: 1.y.y
Downloading update...
Verifying download...
Installing update...
Successfully updated xtool to 1.y.y!
Additional Suggestions
- Support Linux, macOS, and Windows/WSL where applicable.
- Provide
--forceto reinstall the current version. - Support
--pre-releasefor users who want to try beta versions. - Detect package-manager installations and direct users to the appropriate update method.
- Handle permission errors gracefully.
- Preserve existing configuration, authentication, and SDK files.
- Avoid leaving a broken installation if downloading or replacing the binary fails.
Motivation
This would improve the developer experience and make keeping xtool up to date much more convenient, particularly for users who install it manually or use it inside WSL.
Thanks for considering this feature and for your work on xtool!
- 主要言語
- Swift
- スター
- 5.5k
- フォーク
- 163
- 平均マージ
- 19時間 33分
- マージ済み PR(30日)
- 25
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
xtool-org/xtool のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 63/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
メンテナーはふだん 1 日以内に返信
-
Error: exited(127)オープンbug
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
xtool-org/xtool#364 · リアクション 6 件 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 12/100
xtool-org/xtool#359 · コメント 3 件 · リアクション 2 件 ·
メンテナーはふだん 1 日以内に返信
xtool-org/xtool の issue をすべて見る
似ている issue
-
product / auth product / databases product / functions product / messaging product / storage product / vcs
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
storage: eliminate force-unwraps and fatalError in continueStreamingUpload対応中かも @chingor13 が今日担当しました。 オープンapi: storage type: cleanup
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
googleapis/google-cloud-swift#1527 ·
メンテナーはふだん 1 日以内に返信
-
ci-failure ci:assertion test
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
openwatersio/slackwater-ios#811 ·
メンテナーはふだん 1 日以内に返信
-
ai-assisted
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
swiftlang/swift-testing#1979 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
foxglove/mcap#1907 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信