func main() { arguments := args.Default() // Override defaults. arguments.OutputFileBaseName = "openapi_generated" // 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.Default() // Override defaults. arguments.OutputFileBaseName = "openapi_generated" arguments.GoHeaderFilePath = filepath.Join(args.DefaultSourceTree(), "k8s.io/kubernetes/hack/boilerplate/boilerplate.go.txt") // 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.") }