@@ -16,8 +16,6 @@ import (
1616)
1717
1818func secretListCmd () * cobra.Command {
19- // TODO: Fix
20- // It generate a 500 in the CCM currently
2119 var (
2220 page_size uint32
2321 page_number uint32
@@ -53,9 +51,10 @@ func secretPostCmd() *cobra.Command {
5351 customMetadata map [string ]string
5452 )
5553 cmd := & cobra.Command {
56- Use : "create PATH [DATA]" ,
57- Short : "Create a secret" ,
58- Args : cobra .MinimumNArgs (2 ),
54+ Use : "create PATH DATA..." ,
55+ Short :
"Create a secret. Data is in key value format, a json file can also be used by adding the prefix '@' (exp: bar=baz [email protected] )" ,
56+ Args : cobra .MinimumNArgs (2 ),
57+ Example :
"create foo/bar zip=zap [email protected] | create foo/bar @data.json" ,
5958 Run : func (cmd * cobra.Command , args []string ) {
6059 in := io .Reader (os .Stdin )
6160 body := types.PostSecretV2Request {
@@ -144,9 +143,10 @@ func secretPutCmd() *cobra.Command {
144143 customMetadata map [string ]string
145144 )
146145 cmd := & cobra.Command {
147- Use : "update PATH [DATA]" ,
148- Short : "Update a secret" ,
149- Args : cobra .MinimumNArgs (1 ),
146+ Use : "update PATH [DATA]..." ,
147+ Short : "Update a secret" ,
148+ Args : cobra .MinimumNArgs (1 ),
149+ Example :
"update foo/bar zip=zap [email protected] | update --cas-required foo/bar @data.json" ,
150150 Run : func (cmd * cobra.Command , args []string ) {
151151 in := io .Reader (os .Stdin )
152152 body := types.PutSecretV2Request {
0 commit comments