add yaml parsing and test
@@ -191,7 +191,7 @@ func (c *Config) SetDefault() error {
// configFromFile loads a configuration from a yml file
func (c *Config) configFromFile() error {
c.sc = &ScopeConfig{}
- /*
+
yamlFile, err := ioutil.ReadFile(c.UserConfig)
if err != nil {
return err
@@ -199,7 +199,7 @@ func (c *Config) configFromFile() error {
if err = yaml.Unmarshal(yamlFile, c.sc); err != nil {
return err
}
- */
+
return nil
}
