Files
shhh/internal/clis/hmsecrets/rootcmd.go
T
jmug 03247415b2
build-secretsserver / build (push) Successful in 1m39s
release-clis / release (push) Successful in 2m25s
feat: Support configuration file for hmsecrets.
2026-10-29 14:35:46 -07:00

32 lines
429 B
Go

package hmsecrets
import (
"fmt"
"os"
"github.com/spf13/cobra"
)
var conf config
var rootCmd = &cobra.Command{
Use: "hmsecrets",
Short: "Interact with the HandMade secrets service",
}
func Execute() {
defer func() {
if r := recover(); r != nil {
fmt.Printf("%+v\n", r)
os.Exit(1)
}
}()
conf = mustLoadConfig()
if err := rootCmd.Execute(); err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
}