Skip to content

feat: add self-update mechanism with GitHub release integration#10

Merged
Valkyrie00 merged 1 commit into
Valkyrie00:mainfrom
rebtoor:selfupdate
Apr 22, 2026
Merged

feat: add self-update mechanism with GitHub release integration#10
Valkyrie00 merged 1 commit into
Valkyrie00:mainfrom
rebtoor:selfupdate

Conversation

@rebtoor

@rebtoor rebtoor commented Apr 21, 2026

Copy link
Copy Markdown
Contributor

Check for new versions via the GitHub Releases API and notify the user
both on the CLI (--version) and in the TUI header bar with a yellow
badge. A new -U/--selfupdate flag downloads the matching binary for
the current OS/architecture, verifies the SHA256 checksum, and
atomically replaces the running executable.

Refactor header rendering into a shared writeHeader method, replacing
the duplicated Fprintf calls in buildHeader and showTenantPicker.

Co-authored-by: Claude noreply@anthropic.com

@rebtoor rebtoor force-pushed the selfupdate branch 2 times, most recently from 6b916b0 to 63b5c09 Compare April 21, 2026 14:24
Check for new versions via the GitHub Releases API and notify the user
both on the CLI (--version) and in the TUI header bar with a yellow
badge. A new -U/--selfupdate flag downloads the matching binary for
the current OS/architecture, verifies the SHA256 checksum, and
atomically replaces the running executable.

Refactor header rendering into a shared writeHeader method, replacing
the duplicated Fprintf calls in buildHeader and showTenantPicker.

Co-authored-by: Claude <noreply@anthropic.com>

Signed-off-by: Roberto Alfieri <ralfieri@redhat.com>
@Valkyrie00 Valkyrie00 merged commit 5c13141 into Valkyrie00:main Apr 22, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants