INNER CODE UNIT · Go
init
kubecolor/kubecolor · internal/cmd/configschema/main.go:27
func init() {
flag.StringVar(&flags.repo, "repo", flags.repo, "Path to root of code repository")
flag.StringVar(&flags.out, "out", flags.out, "Where to write output. A single dash means stdout")
}
func main() {
flag.Parse()
r := &jsonschema.Reflector{
Lookup: Lookup,
KeyNamer: Namer,
Namer: func(t reflect.Type) string {
return Namer(t.Name())
},
RequiredFromJSONSchemaTags: true,
ExpandedStruct: true,
}