Skip to content

feat: add opdev update command - #15

Merged
tonyferrell merged 1 commit into
mainfrom
feat/update-command
Mar 28, 2026
Merged

feat: add opdev update command#15
tonyferrell merged 1 commit into
mainfrom
feat/update-command

Conversation

@tonyferrell

Copy link
Copy Markdown
Contributor

Summary

  • Adds opdev update command that self-updates from GitHub Releases
  • Detects current OS/arch, downloads matching binary, replaces in-place
  • Uses sudo when needed (e.g., /usr/local/bin)
  • Verifies the installed binary with --version after install
  • Supports --dry-run

Test plan

  • go vet, go build, go test all pass
  • opdev update --help shows usage
  • opdev update --dry-run correctly returns 404 (no releases yet)
  • After first release tag: opdev update downloads and installs

🤖 Generated with Claude Code

Downloads the latest release binary for the current OS/arch from
GitHub Releases and replaces the running binary. Supports macOS and
Linux (arm64, amd64). Uses sudo when installing to system directories.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@tonyferrell
tonyferrell merged commit 1393936 into main Mar 28, 2026
1 check passed
@tonyferrell
tonyferrell deleted the feat/update-command branch March 28, 2026 06:19
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