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 update command which looks at os and tries to update #42

Closed
wants to merge 3 commits into from

Conversation

Slug-Boi
Copy link
Owner

This pull request includes several changes to the build and release process, as well as the addition of a new update command for the cocommit CLI tool. The most important changes are summarized below:

Build and Release Process:

  • Simplified the naming convention for release files by removing the tag from the filenames in .github/workflows/build_test_release.yml and ci/build_test_release.go. ([[1]](https://github.com/Slug-Boi/cocommit/pull/42/files#diff-d8b5fc8d0a07a901e2f4e46524967df2ef586996a91e0fdcba0fea049171311fL43-R53), [[2]](https://github.com/Slug-Boi/cocommit/pull/42/files#diff-c75ab1b931458a8962077f535d1d5e8dc3c8d72e06eedc73c807679e7566a3e1L47-R47))
  • Added an extra step to build for aarch64 on Darwin in ci/build_test_release.go. ([ci/build_test_release.goR59-R69](https://github.com/Slug-Boi/cocommit/pull/42/files#diff-c75ab1b931458a8962077f535d1d5e8dc3c8d72e06eedc73c807679e7566a3e1R59-R69))

New Update Command:

  • Introduced a new update command in src/cmd/update.go that allows users to update the cocommit CLI tool either by running an direct update and replace process or using the go get command with a -g flag. ([src/cmd/update.goR1-R211](https://github.com/Slug-Boi/cocommit/pull/42/files#diff-f7a74bdb21647930a3ab58b74971361aeb9c65bac68220b6847175119795c646R1-R211))

resolves #38
resolves #39

this command will try to download and replace your current binary with
the latest release binary
…ersion from tar

the version number was removed from the tar to support new update
command
@Slug-Boi Slug-Boi self-assigned this Nov 28, 2024
src/cmd/update.go Fixed Show fixed Hide fixed
@Slug-Boi Slug-Boi closed this Nov 28, 2024
@Slug-Boi Slug-Boi mentioned this pull request Nov 28, 2024
@Slug-Boi Slug-Boi deleted the feat_add_update_command branch November 28, 2024 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant