func main() { arguments := &args.GeneratorArgs{ OutputBase: args.DefaultSourceTree(), GoHeaderFilePath: "hack/boilerplate.txt", GeneratedBuildTag: "ignore_autogenerated_openshift", OutputPackagePath: "github.com/openshift/origin/pkg/client/listers", } arguments.AddFlags(pflag.CommandLine) // Run it. if err := arguments.Execute( generators.NameSystems(), generators.DefaultNameSystem(), generators.Packages, ); err != nil { glog.Fatalf("Error: %v", err) } glog.V(2).Info("Completed successfully.") }
func main() { arguments := &args.GeneratorArgs{ OutputBase: args.DefaultSourceTree(), GoHeaderFilePath: filepath.Join(args.DefaultSourceTree(), "k8s.io/kubernetes/hack/boilerplate/boilerplate.go.txt"), GeneratedBuildTag: "ignore_autogenerated", OutputPackagePath: "k8s.io/kubernetes/pkg/client/listers", } arguments.AddFlags(pflag.CommandLine) // Run it. if err := arguments.Execute( generators.NameSystems(), generators.DefaultNameSystem(), generators.Packages, ); err != nil { glog.Fatalf("Error: %v", err) } glog.V(2).Info("Completed successfully.") }