INNER CODE UNIT · Go
main
openyurtio/openyurt · cmd/yurt-manager/yurt-manager.go:30
func main() {
command := app.NewYurtManagerCommand()
// TODO: once we switch everything over to Cobra commands, we can go back to calling
// utilflag.InitFlags() (by removing its pflag.Parse() call). For now, we have to set the
// normalize func and add the go flag set by hand.
// utilflag.InitFlags()
logs.InitLogs()
defer logs.FlushLogs()
defer klog.Flush()
if err := command.Execute(); err != nil {
os.Exit(1)
}
}