INNER CODE UNIT · Go

main

openyurtio/openyurt · cmd/yurt-node-servant/node-servant.go:35

func main() {
	version := fmt.Sprintf("%#v", projectinfo.Get())
	rootCmd := &cobra.Command{
		Use:     "node-servant",
		Short:   "node-servant do convert/revert specific node",
		Version: version,
	}
	rootCmd.PersistentFlags().String("kubeconfig", "", "The path to the kubeconfig file")
	rootCmd.AddCommand(convert.NewConvertCmd())
	rootCmd.AddCommand(revert.NewRevertCmd())
	rootCmd.AddCommand(config.NewConfigCmd())
	rootCmd.AddCommand(upgrade.NewUpgradeCmd())

	if err := rootCmd.Execute(); err != nil { // run command
		os.Exit(1)
	}
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…