Skip to content

Commit ae9a66a

Browse files
author
Jan Sternagel
committed
fix name in example form --key to correct --key-id
1 parent 519f724 commit ae9a66a

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

internal/cmd/beta/kms/version/destroy/destroy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func NewCmd(params *params.CmdParams) *cobra.Command {
4343
Example: examples.Build(
4444
examples.NewExample(
4545
`Destroy key version "42" for the key "my-key-id" inside the key ring "my-key-ring-id"`,
46-
`$ stackit beta kms version destroy 42 --key "my-key-id" --key-ring-id "my-key-ring-id"`),
46+
`$ stackit beta kms version destroy 42 --key-id "my-key-id" --key-ring-id "my-key-ring-id"`),
4747
),
4848
RunE: func(cmd *cobra.Command, args []string) error {
4949
ctx := context.Background()

internal/cmd/beta/kms/version/disable/disable.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func NewCmd(params *params.CmdParams) *cobra.Command {
4343
Example: examples.Build(
4444
examples.NewExample(
4545
`Disable key version "42" for the key "my-key-id" inside the key ring "my-key-ring-id"`,
46-
`$ stackit beta kms version disable 42 --key "my-key-id" --key-ring-id "my-key-ring-id"`),
46+
`$ stackit beta kms version disable 42 --key-id "my-key-id" --key-ring-id "my-key-ring-id"`),
4747
),
4848
RunE: func(cmd *cobra.Command, args []string) error {
4949
ctx := context.Background()

internal/cmd/beta/kms/version/enable/enable.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func NewCmd(params *params.CmdParams) *cobra.Command {
4545
Example: examples.Build(
4646
examples.NewExample(
4747
`Enable key version "42" for the key "my-key-id" inside the key ring "my-key-ring-id"`,
48-
`$ stackit beta kms version enable 42 --key "my-key-id" --key-ring-id "my-key-ring-id"`),
48+
`$ stackit beta kms version enable 42 --key-id "my-key-id" --key-ring-id "my-key-ring-id"`),
4949
),
5050
RunE: func(cmd *cobra.Command, args []string) error {
5151
ctx := context.Background()

internal/cmd/beta/kms/version/list/list.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ func NewCmd(params *params.CmdParams) *cobra.Command {
4040
Example: examples.Build(
4141
examples.NewExample(
4242
`List all key versions for the key "my-key-id" inside the key ring "my-key-ring-id"`,
43-
`$ stackit beta kms version list --key "my-key-id" --key-ring-id "my-key-ring-id"`),
43+
`$ stackit beta kms version list --key-id "my-key-id" --key-ring-id "my-key-ring-id"`),
4444
examples.NewExample(
4545
`List all key versions in JSON format`,
46-
`$ stackit beta kms version list --key "my-key-id" --key-ring-id "my-key-ring-id" -o json`),
46+
`$ stackit beta kms version list --key-id "my-key-id" --key-ring-id "my-key-ring-id" -o json`),
4747
),
4848
RunE: func(cmd *cobra.Command, _ []string) error {
4949
ctx := context.Background()

internal/cmd/beta/kms/version/restore/restore.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func NewCmd(params *params.CmdParams) *cobra.Command {
4343
Example: examples.Build(
4444
examples.NewExample(
4545
`Restore key version "42" for the key "my-key-id" inside the key ring "my-key-ring-id"`,
46-
`$ stackit beta kms version restore 42 --key "my-key-id" --key-ring-id "my-key-ring-id"`),
46+
`$ stackit beta kms version restore 42 --key-id "my-key-id" --key-ring-id "my-key-ring-id"`),
4747
),
4848
RunE: func(cmd *cobra.Command, args []string) error {
4949
ctx := context.Background()

0 commit comments

Comments
 (0)