-
Notifications
You must be signed in to change notification settings - Fork 0
feat: Add self-update command and version management #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…s-platform configuration support.
…and detailing self-update and templates features.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds self-update functionality to the journal-cli, enabling users to update the binary directly from GitHub Releases without external package managers. It also introduces developer tooling for version management and comprehensive architecture documentation.
- Added
self-updatecommand that automatically detects OS/architecture and downloads the appropriate binary from GitHub Releases - Implemented
make bump-versiontarget to streamline version updates across multiple files - Added comprehensive architecture documentation including ADRs and feature documentation
Reviewed changes
Copilot reviewed 13 out of 14 changed files in this pull request and generated 13 comments.
Show a summary per file
| File | Description |
|---|---|
| internal/updater/self_update.go | Core self-update logic: queries GitHub API, downloads binary, performs in-place replacement with rollback support |
| cmd/journal/main.go | Integrated self-update subcommand handler before flag parsing |
| internal/help/help.yaml | Updated version to 0.2.02 and added self-update command documentation |
| internal/help/help.go | Added rendering logic for the Updates section in help output |
| README.md | Added Updates section with self-update instructions and documentation links |
| Makefile | Updated VERSION to 0.2.02 and added bump-version target with sed automation |
| CHANGELOG.md | Added changelog entry for version 0.2.02 |
| .gitignore | Updated to ignore /journal binary and /bin directory |
| docs/features/self-update.md | New file documenting self-update feature implementation |
| docs/features/templates.md | New file documenting template feature |
| docs/ARCHITECTURE.md | New file providing architecture overview |
| docs/adr/001-pragmatic-clean-architecture.md | New ADR documenting architectural approach |
| cmd/journal/main.go.bak | Backup file that should not be in version control |
| architecture.md | Removed old architecture documentation (replaced by docs/ARCHITECTURE.md) |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: ops295 <42335697+ops295@users.noreply.github.com>
Co-authored-by: ops295 <42335697+ops295@users.noreply.github.com>
Co-authored-by: ops295 <42335697+ops295@users.noreply.github.com>
Remove backup file from version control
Co-authored-by: ops295 <42335697+ops295@users.noreply.github.com>
[WIP] Address feedback on self-update command and version management
Add User-Agent header to GitHub API requests in self-update
This PR introduces a
self-updatecommand to allow users to easily update the CLI to the latest version directly from their terminal. It also adds developer tooling to streamline release management.Summary
self-updatecommand.make bump-versiontarget.make bump-version v=0.2.02Makefile,main.go, andhelp.yaml.README.mdandhelp.yamlwith instructions for the new command.CHANGELOG.mdfor v0.2.02.Checklist
Reviewers
Request review from
@hashbuzz-social(or other maintainers). I will review first as requested.