INNER CODE UNIT · Go

init

alexei-led/pumba · cmd/main.go:50

func init() {
	// set log level
	log.SetLevel(log.WarnLevel)
	log.SetFormatter(&log.TextFormatter{})
	// handle termination signal
	topContext = handleSignals() //nolint:fatcontext // top-level process signal context, assigned once in init
}

func main() {
	rootCertPath := "/etc/ssl/docker"

	if os.Getenv("DOCKER_CERT_PATH") != "" {
		rootCertPath = os.Getenv("DOCKER_CERT_PATH")
	}

	app := cli.NewApp()
	app.Name = "Pumba"
	app.Version = versionSingature

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…