Added version flag compatibility on the root command#93
Conversation
WalkthroughA new versioning mechanism was introduced by adding a Changes
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
Note 🎁 Summarized by CodeRabbit FreeYour organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Join our Discord community for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
| "github.com/aws/aws-sdk-go-v2/service/ssm" | ||
| ) | ||
|
|
||
| var Version = "0.2.0" |
There was a problem hiding this comment.
@sanjog-lama Never hardcode versions in source code, Use semantic versioning (major.minor.patch)
I recommend auto version bumping based on commit messages
Few tools will help you
- go-releaser
- semantic-release
There was a problem hiding this comment.
@sarosejoshi sir, I have added that hardcoded version just for testing purpose. That version gets overwritten during build. I have used go-releaser and sematic-release versioning. The code can be found on workflows/releaser.yaml file.
So, should I replace the version with something like dev?
Description
awsctl --versionorawsctl -v. The version will be automatically handled with go releaser.Summary by CodeRabbit