Skip to content

feat: add self-update command#13

Merged
clawdeeo merged 1 commit intomainfrom
feat/self-update
Apr 21, 2026
Merged

feat: add self-update command#13
clawdeeo merged 1 commit intomainfrom
feat/self-update

Conversation

@clawdeeo
Copy link
Copy Markdown
Collaborator

Changes

  • Add self-update command with optional --check flag
  • Query GitHub API for latest gitclaw release
  • Download and replace current binary atomically
  • Backup current binary before update, rollback on failure
  • Works on all platforms (Linux, macOS, Windows)

Usage

# Check for updates
gitclaw self-update --check
# Current version: 0.1.0
# Latest version:  0.2.0
# Update available: 0.1.0 -> 0.2.0

# Perform update
gitclaw self-update

Part of v0.3.0 phase 2 (self-update).

- Add 'self-update' command with --check flag
- Query GitHub for latest gitclaw release
- Download and replace current binary atomically
- Support for all platforms (Linux, macOS, Windows)
- Backup current binary before update (rollback on failure)

Part of v0.3.0 phase 2 (self-update).
@clawdeeo clawdeeo merged commit d5fc996 into main Apr 21, 2026
8 checks passed
@clawdeeo clawdeeo deleted the feat/self-update branch April 21, 2026 21:41
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.

1 participant