INNER CODE UNIT · Go
NewCmdConfigSyncer
config-syncer/config-syncer · pkg/cmds/root.go:28
func NewCmdConfigSyncer(version string) *cobra.Command {
cmd := &cobra.Command{
Use: "config-syncer",
Short: `Config Syncer by AppsCode - A Kubernetes Configuration Syncer`,
Long: `Config Syncer is a Kubernetes controller to sync configmaps and secrets. For more information, visit here: https://github.com/kubeops/config-syncer/tree/master/docs`,
DisableAutoGenTag: true,
}
stopCh := genericapiserver.SetupSignalHandler()
cmd.AddCommand(NewCmdRun(os.Stdout, os.Stderr, stopCh))
cmd.AddCommand(v.NewCmdVersion())
return cmd
}