-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Fixup: Rename -application-name to just -app for consistency #77
Conversation
Other HCP commands use -app for the app name, and it's much less typing than -application-name. This simplifies this flag value.
@@ -58,8 +58,8 @@ $ hcp waypoint add-ons create -n=my-addon -a=my-application -d=my-addon-definiti | |||
Required: true, | |||
}, | |||
{ | |||
Name: "application-name", | |||
DisplayValue: "NAME", | |||
Name: "app", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder since this is a breaking change, how about we add both into the mix for some period of time, and then let users drift away. Not sure if it is possible, but when specified both could update the same underlying var.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't feel like that's worth the maintenance effort. Maybe if this CLI had been around for years sure, but at this point it's brand new (not to mention Waypoint is still in beta) so I'd rather make the breaking change than maintain two flags for backwards compatibility right now. I do appreciate the suggestion though!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Please fill the description section if possible 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The add-on-appening! ✅
Changes proposed in this PR:
Other HCP commands use -app for the app name, and it's much less typing than -application-name. This simplifies this flag value.
How I've tested this PR:
Built and validated the flag name changed, updated the tests and saw they passed.
How I expect reviewers to test this PR:
Same ☝🏻
Checklist: