INNER CODE UNIT · Go

main

rigdev/rig · cmd/rig-operator/main.go:54

func main() {
	cmd := &cobra.Command{
		Use:   "rig-operator",
		Short: "operator for the rig.dev CRDs",
		RunE: func(cmd *cobra.Command, args []string) error {
			return run(cmd, args)
		},
		SilenceErrors: true,
		SilenceUsage:  true,
	}
	flags := cmd.PersistentFlags()
	flags.StringP(flagConfigFile, "c", "/etc/rig-operator/config.yaml", "path to rig-operator config file")

	cmd.AddCommand(build.VersionCommand())
	if err := certgen.Setup(cmd); err != nil {
		fmt.Println(err)
		os.Exit(1)
	}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…