// initConfig reads in config file and ENV variables if set.
initConfig reads in config file and ENV variables if set.
// initConfig reads in config file and ENV variables if set .
func initConfig() {
	if configFile != "" { 
		viper.SetConfigFile(configFile)
	}
	viper.SetConfigName("fusis") 
	viper.SetConfigType("toml")
	viper.AddConfigPath(".")            
	viper.AddConfigPath("$HOME/.fusis") 
	viper.AddConfigPath("/etc")         
	viper.AutomaticEnv()                
	if err := viper.ReadInConfig(); err == nil {
		log.Infof("Using config from %s", viper.ConfigFileUsed())
	} else {
		log.Fatal("Error reading config file: fusis.toml", err)
		log.Fatal("Searched: ./, ~/fusis and /etc")
	}
}
func initConfig ( ) { if configFile != " " { viper . SetConfigFile ( configFile ) } viper . SetConfigName ( " " ) viper . SetConfigType ( " " ) viper . AddConfigPath ( " " ) viper . AddConfigPath ( " " ) viper . AddConfigPath ( " " ) viper . AutomaticEnv ( ) if err := viper . ReadInConfig ( ) ; err == nil { log . Infof ( " " , viper . ConfigFileUsed ( ) ) } else { log . Fatal ( " " , err ) log . Fatal ( " " ) } }
initConfig reads in config file and ENV variables if set.
initConfig reads in config file and ENV variables if set .
// enable ability to specify config file via flag // name of config file (without extension) // adding current directory as first search path // adding ~/.fusis as fallback // adding /etc as next fallback // read in environment variables that match // If a config file is found, read it in.