INNER CODE UNIT · Go

main

komodorio/helm-dashboard · main.go:41

func main() {
	err := os.Setenv("HD_VERSION", version) // for anyone willing to access it
	if err != nil {
		fmt.Println("Failed to remember app version because of error: " + err.Error())
	}

	opts := parseFlags()
	if opts.BindHost == "" {
		host := os.Getenv("HD_BIND")
		if host == "" {
			host = "localhost"
		}
		opts.BindHost = host
	}

	opts.Verbose = opts.Verbose || utils.EnvAsBool("DEBUG", false)
	setupLogging(opts.Verbose)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…