INNER CODE UNIT · Go
main
deckhouse/deckhouse · dhctl/hack/gen_preflight_checks/main.go:32
func main() {
out := flag.String("out", "", "output file (default: stdout)")
flag.Parse()
names := collectCheckNames(inputFiles())
output := render(names)
if *out == "" {
fmt.Print(output)
return
}
if err := os.WriteFile(*out, []byte(output), 0o644); err != nil {
panic(err)
}
}
func inputFiles() []string {
patterns := []string{