package main import ( "fmt" "os" "git.nevets.tech/Keys/certman/app/shared" "github.com/spf13/cobra" ) func main() { rootCmd := &cobra.Command{ Use: "certman", Short: "CertMan", Long: "Certificate Manager", RunE: func(cmd *cobra.Command, args []string) error { return cmd.Help() }, } rootCmd.AddCommand(shared.VersionCmd) rootCmd.AddCommand(shared.NewKeyCmd) rootCmd.AddCommand(shared.DevCmd) rootCmd.AddCommand(shared.NewDomainCmd) rootCmd.AddCommand(shared.InstallCmd) rootCmd.AddCommand(shared.CertCmd) rootCmd.AddCommand(shared.DaemonCmd) if err := rootCmd.Execute(); err != nil { fmt.Fprintln(os.Stderr, err) os.Exit(1) } }