@@ -277,7 +277,7 @@ func (cc *ClientCmd) SetClientValueFromJsonCmd() *cobra.Command {
277
277
278
278
res , err = cc .mobileClient .MobileV1alpha1 ().MobileClients (ns ).Patch (clientID , types .MergePatchType , []byte (patch ))
279
279
if err != nil {
280
- return errors .Wrap (err , "failed to patch mobile client with clientID " + clientID )
280
+ return errors .Wrap (err , fmt . Sprintf ( "failed to patch mobile client with clientID %s" , clientID ) )
281
281
}
282
282
283
283
outType := outputType (cmd .Flags ())
@@ -344,9 +344,9 @@ func (cc *ClientCmd) SetClientSpecValueCmd() *cobra.Command {
344
344
345
345
res , err = cc .mobileClient .MobileV1alpha1 ().MobileClients (ns ).Patch (clientId , types .MergePatchType , []byte (patch ))
346
346
if err != nil {
347
- return errors .Wrap (err , "failed to set value in mobile client with clientID " + clientId )
347
+ return errors .Wrap (err , fmt . Sprintf ( "failed to set value in mobile client with clientID %s" , clientId ) )
348
348
}
349
- //outType := outputType(cmd.Flags())
349
+
350
350
if err := cc .Out .Render (cmd .Name (), "json" , res ); err != nil {
351
351
return errors .Wrap (err , fmt .Sprintf (output .FailedToOutPutInFormat , "mobile client" , "json" ))
352
352
}
@@ -355,7 +355,7 @@ func (cc *ClientCmd) SetClientSpecValueCmd() *cobra.Command {
355
355
},
356
356
}
357
357
command .PersistentFlags ().StringVarP (& clientId , "client" , "c" , "" , "value" )
358
- command .PersistentFlags ().StringVarP (& valueName , "name" , "n" , "" , "value " )
358
+ command .PersistentFlags ().StringVarP (& valueName , "name" , "n" , "" , "name " )
359
359
command .PersistentFlags ().StringVarP (& value , "value" , "v" , "" , "value" )
360
360
return command
361
361
}
0 commit comments