Adds current working directory as config path

This commit is contained in:
Faissal Elamraoui 2016-12-31 11:23:32 +01:00
parent 1dd5ff2e11
commit e475944a90

View file

@ -63,6 +63,7 @@ func initConfig() {
viper.SetConfigName(".cobra") // name of config file (without extension)
viper.AddConfigPath("$HOME") // adding home directory as first search path
viper.AddConfigPath(".") // optionally look for config in working directory
viper.AutomaticEnv() // read in environment variables that match
// If a config file is found, read it in.