changed order of config path search
check the local (".") directory before the home directory.  this would
allow for local override in a given project, etc.
@@ -154,8 +154,8 @@ func (c *Config) Load(file string) error {
if err != nil {
return err
}
- c.FileConfig.AddConfigPath(home)
c.FileConfig.AddConfigPath(".")
+ c.FileConfig.AddConfigPath(home)
c.FileConfig.AddConfigPath(xdg.ConfigHome)
c.FileConfig.AddConfigPath(xdg.ConfigHome + "/gnmic")
c.FileConfig.SetConfigName(configName)
@@ -174,7 +174,6 @@ func (c *Config) Load(file string) error {
return nil
}
-
func (c *Config) SetLogger() {
if c.Globals.LogFile != "" {
f, err := os.OpenFile(c.Globals.LogFile, os.O_RDWR|os.O_CREATE|os.O_APPEND, 0666)
