func init()

in worker/main.go [23:40]


func init() {
	defaultPort, exists := os.LookupEnv("PORT")
	if !exists || len(defaultPort) <= 0 {
		defaultPort = "8080"
	}

	flag.StringVar(&config.Port, "port", defaultPort, "port where to listen")
	flag.StringVar(&config.GitUrl, "gitUrl", "https://github.com/agilestacks/google-stacks.git", "Git URL with stacks")
	flag.StringVar(&config.GitDir, "gitDir", "/tmp/stacks", "directory where clone stacks to")
	flag.BoolVar(&config.Verbose, "verbose", false, "verbose logging")
	flag.DurationVar(&config.Timeout, "timeout", 1*time.Hour, "request timeout")

	flag.Parse()

	if config.Verbose {
		log.Print("VERBOSE logging enabled")
	}
}