feat: Utility CLI to interact with the secrets service.

This commit is contained in:
jmug committed 2026-10-24 02:13:11 -07:00
1 parent 39ea9d708a
commit f65e0c7eaa
7 files changed
+150

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
package hmsecrets
import (
"github.com/spf13/cobra"
)
func init() {
rootCmd.AddCommand(delCmd)
}
var delCmd = &cobra.Command{
Use: "del",
Short: "del [key]",
Args: cobra.ExactArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
cli := getClient(apiBase, caFile, clientCert, clientKey)
err := cli.Delete(args[0])
if err != nil {
return err
}
return nil
},
}