Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/stackit_argus_instance_update.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ stackit argus instance update INSTANCE_ID [flags]
$ stackit argus instance update xxx --plan-id yyy

Update the plan of an Argus instance with ID "xxx" by specifying the plan name
$ stackit argus instance update xxx --plan-name yyy
$ stackit argus instance update xxx --plan-name Frontend-Starter-EU01

Update the name of an Argus instance with ID "xxx"
$ stackit argus instance update xxx --name new-instance-name
Expand All @@ -27,7 +27,7 @@ stackit argus instance update INSTANCE_ID [flags]

```
-h, --help Help for "stackit argus instance update"
--name string Instance name
-n, --name string Instance name
--plan-id string Plan ID
--plan-name string Plan name
```
Expand Down
4 changes: 2 additions & 2 deletions internal/cmd/argus/instance/update/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func NewCmd() *cobra.Command {
"$ stackit argus instance update xxx --plan-id yyy"),
examples.NewExample(
`Update the plan of an Argus instance with ID "xxx" by specifying the plan name`,
"$ stackit argus instance update xxx --plan-name yyy"),
"$ stackit argus instance update xxx --plan-name Frontend-Starter-EU01"),
examples.NewExample(
`Update the name of an Argus instance with ID "xxx"`,
"$ stackit argus instance update xxx --name new-instance-name"),
Expand Down Expand Up @@ -123,7 +123,7 @@ func NewCmd() *cobra.Command {
func configureFlags(cmd *cobra.Command) {
cmd.Flags().Var(flags.UUIDFlag(), planIdFlag, "Plan ID")
cmd.Flags().String(planNameFlag, "", "Plan name")
cmd.Flags().String(instanceNameFlag, "", "Instance name")
cmd.Flags().StringP(instanceNameFlag, "n", "", "Instance name")
}

func parseInput(cmd *cobra.Command, inputArgs []string) (*inputModel, error) {
Expand Down