INNER CODE UNIT · Go
main
bitpoke/mysql-operator · cmd/mysql-operator-sidecar/main.go:33
func main() {
stop := make(chan struct{})
cmd := &cobra.Command{
Use: "mysql-operator-sidecar",
Short: "Helper for mysql operator.",
Long: `mysql-operator-sidecar: helper for config pods`,
Run: func(cmd *cobra.Command, args []string) {
log.Info("you run mysql-operator-sidecar, see help section")
os.Exit(1)
},
}
// add flags and parse them
debug := false
flag.BoolVar(&debug, "debug", false, "Set logger in debug mode")
cmd.PersistentFlags().AddGoFlagSet(flag.CommandLine)