feat: add keenable update self-update command - #68
Conversation
Uses axoupdater (cargo-dist's self-update library) with the install receipt the shell/powershell installers write. Homebrew and manual installs get an error with the right fix hint instead. The hourly update notice now suggests `keenable update` for installer installs. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
PR Summary by QodoAdd receipt-aware
AI Description
Diagram
High-Level Assessment
Files changed (9)
|
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Code Review by Qodo
1.
|
Addresses Qodo review: human-facing output must use src/ui.rs. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
- close the progress step once, before the match, not in every arm - update_hint delegates to install_hint for the Homebrew branch - expose update::current_version() and drop the raw env! copies - derive the axoupdater app name from CARGO_PKG_NAME - fold the duplicate error+hint+exit blocks into bail_reinstall - note why Update skips the background update check Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
What
Adds
keenable update— downloads and installs the latest GitHub release in place.How
brew upgradehint; manual/cargo builds get the installer one-liner. Exit 1 in both cases.keenable updateinstead of the curl one-liner (Homebrew installs still get the brew command).Output
Testing
cargo build,cargo clippy,cargo testpass.AXOUPDATER_CONFIG_PATHpointed at an empty dir), so the suite never replaces the binary under test.Notes
🤖 Generated with Claude Code