Skip to content

Commit

Permalink
Merge pull request #77 from hashicorp/waypoint/addons/standardize-app…
Browse files Browse the repository at this point in the history
…-flag

Fixup: Rename -application-name to just -app for consistency
  • Loading branch information
briancain authored May 23, 2024
2 parents 6c057f4 + fbe2710 commit 8d9e809
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .changelog/77.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:breaking-change
Renames the -application-name flag for creating waypoint add-ons to just -app
```
2 changes: 1 addition & 1 deletion internal/commands/waypoint/add-ons/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ $ hcp waypoint add-ons create -n=my-addon -a=my-application -d=my-addon-definiti
Required: true,
},
{
Name: "application-name",
Name: "app",
DisplayValue: "NAME",
Description: "The name of the application to which the add-on will be added.",
Value: flagvalue.Simple("", &opts.ApplicationName),
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/waypoint/add-ons/create_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func TestNewCmdCreate(t *testing.T) {
},
Args: []string{
"-n=cli-test",
"--application-name=testApp",
"--app=testApp",
"--add-on-definition-name=testAddOnDefinition",
},
Expect: &AddOnOpts{
Expand Down

0 comments on commit 8d9e809

Please sign in to comment.