Skip to content

feat(cli): add upgrade command - #7

Open
yan-ad wants to merge 2 commits into
Blankeos:mainfrom
yan-ad:feat/upgrade-command
Open

feat(cli): add upgrade command#7
yan-ad wants to merge 2 commits into
Blankeos:mainfrom
yan-ad:feat/upgrade-command

Conversation

@yan-ad

@yan-ad yan-ad commented Jul 29, 2026

Copy link
Copy Markdown

Summary

  • Add crabcode upgrade to compare the running version with the latest GitHub release.
  • Run the cargo-dist shell installer only when an update is available, surfacing network, version, and installer failures.
  • Enable cargo-dist shell installer artifacts so released binaries can self-upgrade.

Testing

  • cargo fmt
  • cargo test upgrade::tests
  • cargo test parses_upgrade_command
  • cargo run -- upgrade --help
  • git diff --check

Notes

  • The command targets GitHub releases for Blankeos/crabcode.
  • Windows reports that automatic upgrades are unavailable rather than attempting the POSIX shell installer.

@Blankeos

Blankeos commented Jul 29, 2026

Copy link
Copy Markdown
Owner

Super cool! Thanks for contributing! Will review asap

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