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

fix(cli): version prefix v now is now optional #609

Merged

Conversation

sumeshmurali
Copy link
Contributor

Closes #463

📑 Description

The PR make changes to -v/--version in the glasskube cli. Previously it requires the user to add "v" prefix to the version. With the PR the user will be able to pass exact version and the code internally adds a "v" prefix.

✅ Checks

  • My code requires changes to the documentation
  • I have updated the documentation as required

ℹ Additional Information

@sumeshmurali sumeshmurali requested a review from a team as a code owner May 6, 2024 10:28
Copy link
Member

@kosmoz kosmoz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @sumeshmurali!

This looks good, but I think it would be a little cleaner to use strings.HasPrefix instead. Could you please make this change?

@sumeshmurali sumeshmurali requested a review from pmig as a code owner May 7, 2024 13:34
@pmig pmig force-pushed the sumeshmurali/cli-version-prefix-fix branch from 72ce02e to 64d371c Compare May 7, 2024 13:41
@pmig pmig removed their request for review May 7, 2024 13:42
@sumeshmurali
Copy link
Contributor Author

This looks good, but I think it would be a little cleaner to use strings.HasPrefix instead. Could you please make this change?

Made the changes. Can you check now?

@sumeshmurali sumeshmurali requested a review from kosmoz May 7, 2024 16:54
@kosmoz kosmoz force-pushed the sumeshmurali/cli-version-prefix-fix branch from c03fe29 to 093086f Compare May 8, 2024 08:31
@kosmoz kosmoz merged commit 3b296ad into glasskube:main May 8, 2024
2 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.

Handle v prefix in versions in install and update command
2 participants