Skip to content

Commit e58bc38

Browse files
author
Jan Sternagel
committed
fix name in example form --key-ring to correct --key-ring-id
1 parent 32cb334 commit e58bc38

File tree

14 files changed

+19
-19
lines changed

14 files changed

+19
-19
lines changed

internal/cmd/beta/kms/key/create/create.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ func NewCmd(params *params.CmdParams) *cobra.Command {
5555
Example: examples.Build(
5656
examples.NewExample(
5757
`Create a Symmetric KMS key`,
58-
`$ stackit beta kms key create --key-ring "my-keyring-id" --algorithm "rsa_2048_oaep_sha256" --name "my-key-name" --purpose "asymmetric_encrypt_decrypt" --protection "software"`),
58+
`$ stackit beta kms key create --key-ring-id "XXX" --algorithm "rsa_2048_oaep_sha256" --name "my-key-name" --purpose "asymmetric_encrypt_decrypt" --protection "software"`),
5959
examples.NewExample(
6060
`Create a Message Authentication KMS key`,
61-
`$ stackit beta kms key create --key-ring "my-keyring-id" --algorithm "hmac_sha512" --name "my-key-name" --purpose "message_authentication_code" --protection "software"`),
61+
`$ stackit beta kms key create --key-ring-id "XXX" --algorithm "hmac_sha512" --name "my-key-name" --purpose "message_authentication_code" --protection "software"`),
6262
),
6363
RunE: func(cmd *cobra.Command, _ []string) error {
6464
ctx := context.Background()

internal/cmd/beta/kms/key/delete/delete.go

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

internal/cmd/beta/kms/key/key.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717
func NewCmd(params *params.CmdParams) *cobra.Command {
1818
cmd := &cobra.Command{
1919
Use: "key",
20-
Short: "Manage KMS Keys",
20+
Short: "Manage KMS keys",
2121
Long: "Provides functionality for key operations inside the KMS",
2222
Args: args.NoArgs,
2323
Run: utils.CmdHelp,

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ func NewCmd(params *params.CmdParams) *cobra.Command {
3838
Example: examples.Build(
3939
examples.NewExample(
4040
`List all KMS keys for the key ring "my-key-ring-id"`,
41-
`$ stackit beta kms key list --key-ring "my-key-ring-id"`),
41+
`$ stackit beta kms key list --key-ring-id "my-key-ring-id"`),
4242
examples.NewExample(
4343
`List all KMS keys in JSON format`,
44-
`$ stackit beta kms key list --key-ring "my-key-ring-id" --output-format json`),
44+
`$ stackit beta kms key list --key-ring-id "my-key-ring-id" --output-format json`),
4545
),
4646
RunE: func(cmd *cobra.Command, _ []string) error {
4747
ctx := context.Background()

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

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

internal/cmd/beta/kms/key/rotate/rotate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func NewCmd(params *params.CmdParams) *cobra.Command {
4242
Example: examples.Build(
4343
examples.NewExample(
4444
`Rotate a KMS key "my-key-id" and increase it's version inside the key ring "my-key-ring-id".`,
45-
`$ stackit beta kms key rotate "my-key-id" --key-ring "my-key-ring-id"`),
45+
`$ stackit beta kms key rotate "my-key-id" --key-ring-id "my-key-ring-id"`),
4646
),
4747
RunE: func(cmd *cobra.Command, args []string) error {
4848
ctx := context.Background()

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 "my-key-ring-id"`),
46+
`$ stackit beta kms version destroy 42 --key "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 "my-key-ring-id"`),
46+
`$ stackit beta kms version disable 42 --key "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 "my-key-ring-id"`),
48+
`$ stackit beta kms version enable 42 --key "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 "my-key-ring-id"`),
43+
`$ stackit beta kms version list --key "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 "my-key-ring-id" -o json`),
46+
`$ stackit beta kms version list --key "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()

0 commit comments

Comments
 (0)