INNER CODE UNIT · Go
init
openclarity/openclarity · containerruntimediscovery/server/cmd/main.go:80
func init() {
cobra.OnInitialize(initConfig)
rootCmd.PersistentFlags().StringVar(
&listenAddr,
"listenAddr",
":8080",
"The address and port to run the discovery HTTP server on. If address is unspecified\n"+
"such as :8080 then the server will listen on all available IP addresses of the system.")
log.InitLogger(logrus.InfoLevel.String(), os.Stderr)
logger = logrus.WithField("app", "openclarity")
}
func initConfig() {
viper.AutomaticEnv()
}
func main() {