chore: some improvements in bladectl sub-command handling, error logging, and CI #51
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
feat(bladectl): implement command structure for managing compute-blade features
feat(bladectl): improve error handling in identify command for better user feedback
feat(goreleaser): add versioning information to builds for better traceability
feat(agent): expose version, commit, and date information in logs for better tracking
chore(ci): update Go setup action to v5 and simplify caching configuration for improved performance
chore(release): update Go setup action to v5 and simplify caching configuration for improved performance
chore(go.mod): update some dependencies to latest versions for improved stability and features
This PR is to clean up the
bladectl
command structure a little bit and align it closer to the intended format of cobra with<binary> <verb> <noun>
which is similar tokubectl
bladectl fan set-percent 50
bladectl set fan --percent 50
bladectl identify --wait
bladectl set confirm --wait
Additionally, this PR improves on the error handling ever so slightly by slowly introducing (
humane-errors-go
](https://github.com/SierraSoftworks/humane-errors-go) which not only provides an error message, but also adds an actionable advice to the user when showing the error.Lastly, this PR is modifying the CI pipelines by upgrading to
actions/setup-go@v5
which has caching included, simplifying the GitHub Action workflows.