package todo import ( "github.com/olebedev/config" "github.com/wtfutil/wtf/cfg" ) const configKey = "todo" type Settings struct { common *cfg.Common filePath string } func NewSettingsFromYAML(name string, ymlConfig *config.Config) *Settings { localConfig, _ := ymlConfig.Get("wtf.mods." + configKey) settings := Settings{ common: cfg.NewCommonSettingsFromYAML(name, configKey, ymlConfig), filePath: localConfig.UString("filename"), } return &settings }