mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Bargraph moves to common settings "Global" config moves out of wtf and into cfg for the few things that need it We can probably eliminate a global config used across things if we want to
19 lines
362 B
Go
19 lines
362 B
Go
package bargraph
|
|
|
|
import (
|
|
"github.com/olebedev/config"
|
|
"github.com/wtfutil/wtf/cfg"
|
|
)
|
|
|
|
type Settings struct {
|
|
common *cfg.Common
|
|
}
|
|
|
|
func NewSettingsFromYAML(name string, ymlConfig *config.Config, globalConfig *config.Config) *Settings {
|
|
settings := Settings{
|
|
common: cfg.NewCommonSettingsFromModule(name, ymlConfig, globalConfig),
|
|
}
|
|
|
|
return &settings
|
|
}
|