Skip to content
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

feat: add version variable and tie update to only outdated version #47

Merged
merged 4 commits into from
Dec 1, 2024

Conversation

Slug-Boi
Copy link
Owner

This pull request includes several changes to the cocommit CLI tool, focusing on adding version tracking and update checking functionality. The most important changes include adding a version flag to display the current version, modifying the build process to include version information, and implementing update checking against the latest GitHub release.

Version Tracking and Display:

  • src/cmd/root.go: Added a Coco_Version variable and a --version flag to display the current version of the cocommit CLI tool. [1] [2] [3]

Build Process Modifications:

  • ci/build_test_release.go: Modified the build process to include version information by adding the Coco_Version environment variable and using -ldflags to set the version in the build output. [1] [2] [3]

Update Checking:

  • src/cmd/update.go: Added functionality to check the latest release version on GitHub and compare it with the current version. If an update is available, the user is prompted to proceed with the update. [1] [2] [3] [4]

Code Cleanup:

  • src/main.go: Removed outdated comments and metadata from the file header.

resolves #46

@Slug-Boi Slug-Boi self-assigned this Nov 29, 2024
@Slug-Boi Slug-Boi merged commit 0f2a002 into main Dec 1, 2024
3 checks passed
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.

feat: add version flag and tie update command to version
1 participant