@@ -45,15 +45,15 @@ type inputModel struct {
4545func NewCmd (params * params.CmdParams ) * cobra.Command {
4646 cmd := & cobra.Command {
4747 Use : "create" ,
48- Short : "Creates a KMS Wrapping Key " ,
49- Long : "Creates a KMS Wrapping Key ." ,
48+ Short : "Creates a KMS wrapping key " ,
49+ Long : "Creates a KMS wrapping key ." ,
5050 Args : args .NoArgs ,
5151 Example : examples .Build (
5252 examples .NewExample (
53- `Create a Symmetric KMS Wrapping Key ` ,
53+ `Create a Symmetric KMS wrapping key ` ,
5454 `$ stakit beta kms wrappingkey create --key-ring "my-keyring-id" --algorithm "rsa_2048_oaep_sha256" --name "my-wrapping-key-name" --purpose "wrap_symmetric_key"` ),
5555 examples .NewExample (
56- `Create an Asymmetric KMS Wrapping Key with a description` ,
56+ `Create an Asymmetric KMS wrapping key with a description` ,
5757 `$ stakit beta kms wrappingkey create --key-ring "my-keyring-id" --algorithm "hmac_sha256" --name "my-wrapping-key-name" --description "my-description" --purpose "wrap_asymmetric_key"` ),
5858 ),
5959 RunE : func (cmd * cobra.Command , _ []string ) error {
@@ -76,7 +76,7 @@ func NewCmd(params *params.CmdParams) *cobra.Command {
7676 }
7777
7878 if ! model .AssumeYes {
79- prompt := fmt .Sprintf ("Are you sure you want to create a KMS Wrapping Key for project %q?" , projectLabel )
79+ prompt := fmt .Sprintf ("Are you sure you want to create a KMS wrapping key for project %q?" , projectLabel )
8080 err = params .Printer .PromptForConfirmation (prompt )
8181 if err != nil {
8282 return err
@@ -91,7 +91,7 @@ func NewCmd(params *params.CmdParams) *cobra.Command {
9191
9292 wrappingKey , err := req .Execute ()
9393 if err != nil {
94- return fmt .Errorf ("create KMS Wrapping Key : %w" , err )
94+ return fmt .Errorf ("create KMS wrapping key : %w" , err )
9595 }
9696
9797 // Wait for async operation, if async mode not enabled
@@ -100,7 +100,7 @@ func NewCmd(params *params.CmdParams) *cobra.Command {
100100 s .Start ("Creating instance" )
101101 _ , err = wait .CreateWrappingKeyWaitHandler (ctx , apiClient , model .ProjectId , model .Region , * wrappingKey .KeyRingId , * wrappingKey .Id ).WaitWithContext (ctx )
102102 if err != nil {
103- return fmt .Errorf ("wait for KMS Wrapping Key creation: %w" , err )
103+ return fmt .Errorf ("wait for KMS wrapping key creation: %w" , err )
104104 }
105105 s .Stop ()
106106 }
@@ -167,31 +167,31 @@ func outputResult(p *print.Printer, outputFormat, projectLabel string, resp *kms
167167 case print .JSONOutputFormat :
168168 details , err := json .MarshalIndent (resp , "" , " " )
169169 if err != nil {
170- return fmt .Errorf ("marshal KMS Wrapping Key : %w" , err )
170+ return fmt .Errorf ("marshal KMS wrapping key : %w" , err )
171171 }
172172 p .Outputln (string (details ))
173173 return nil
174174
175175 case print .YAMLOutputFormat :
176176 details , err := yaml .MarshalWithOptions (resp , yaml .IndentSequence (true ), yaml .UseJSONMarshaler ())
177177 if err != nil {
178- return fmt .Errorf ("marshal KMS Wrapping Key : %w" , err )
178+ return fmt .Errorf ("marshal KMS wrapping key : %w" , err )
179179 }
180180 p .Outputln (string (details ))
181181 return nil
182182
183183 default :
184- p .Outputf ("Created Wrapping Key for project %q. Wrapping Key ID: %s\n " , projectLabel , utils .PtrString (resp .Id ))
184+ p .Outputf ("Created wrapping key for project %q. wrapping key ID: %s\n " , projectLabel , utils .PtrString (resp .Id ))
185185 return nil
186186 }
187187}
188188
189189func configureFlags (cmd * cobra.Command ) {
190- cmd .Flags ().Var (flags .UUIDFlag (), keyRingIdFlag , "ID of the KMS Key Ring " )
190+ cmd .Flags ().Var (flags .UUIDFlag (), keyRingIdFlag , "ID of the KMS key ring " )
191191 cmd .Flags ().String (algorithmFlag , "" , "En-/Decryption algorithm" )
192192 cmd .Flags ().String (displayNameFlag , "" , "The display name to distinguish multiple wrapping keys" )
193- cmd .Flags ().String (descriptionFlag , "" , "Optinal description of the Wrapping Key " )
194- cmd .Flags ().String (purposeFlag , "" , "Purpose of the Wrapping Key . Enum: 'wrap_symmetric_key', 'wrap_asymmetric_key' " )
193+ cmd .Flags ().String (descriptionFlag , "" , "Optional description of the wrapping key " )
194+ cmd .Flags ().String (purposeFlag , "" , "Purpose of the wrapping key . Enum: 'wrap_symmetric_key', 'wrap_asymmetric_key' " )
195195
196196 err := flags .MarkFlagsRequired (cmd , keyRingIdFlag , algorithmFlag , purposeFlag , displayNameFlag )
197197 cobra .CheckErr (err )
0 commit comments