geldata / geldata/gel-cli

Perform self upgrade automatically

Open
#1,518 1 comment 0 reactions 1 assignee Claimed by @mmastrac View on GitHub
developer experience
Dominant language
Rust
Stars
175
Forks
32
PR merge metrics
No merged PRs in 30d

Description

The CLI already checks for updates and emits a warning prompting users to upgrade. We should take this further and perform the self-upgrade automatically. To make this less annoying the self-upgrade should be done in a background process, i.e. not block the current CLI command execution. That said, we can probably still do a blocking self-upgrade (and auto re-execution) if the CLI version is older than a certain cut off date (e.g. 3 months). There should obviously be an opt-out flag, which, I think, should be extending the `GEL_RUN_VERSION_CHECK` enum to include and default to "auto-update" (also possibly include more specific variants: "auto-update-background" and "auto-update-immediately").

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.