Files

24 lines
413 B
Go

package hmsecrets
import (
"github.com/spf13/cobra"
)
func init() {
rootCmd.AddCommand(setCmd)
}
var setCmd = &cobra.Command{
Use: "set",
Short: "set [key] [value]",
Args: cobra.ExactArgs(2),
RunE: func(cmd *cobra.Command, args []string) error {
cli := getClient(apiBase, caFile, clientCert, clientKey)
err := cli.PutString(args[0], args[1])
if err != nil {
return err
}
return nil
},
}