INNER CODE UNIT · Go
init
kubecolor/kubecolor · internal/cmd/configdoc/main.go:22
func init() {
flag.StringVar(&flags.file, "file", flags.file, "Path to theme.go file")
flag.StringVar(&flags.printer, "printer", flags.printer, "What to print. One of: all, file, env")
}
func main() {
flag.Parse()
prog := Program{}
if err := prog.Run(); err != nil {
slog.Error("Error: " + err.Error())
os.Exit(1)
}
}
type Program struct {
viper *viper.Viper
categories []Category