add metrics logger to config

This commit is contained in:
Robin Olsen
2026-03-02 23:07:50 +01:00
parent 6726445159
commit 9fb56b8643

View File

@@ -7,6 +7,7 @@ type Config struct {
BeadsDBPath string
IssuePrefix string
StatisticsStoragePath string
ActionLogger func(string)
}
var BaseConfig = Config{
@@ -47,3 +48,8 @@ func (c Config) WithStatisticsStoragePath(path string) Config {
c.StatisticsStoragePath = path
return c
}
func (c Config) WithActionLogger(logger func(string)) Config {
c.ActionLogger = logger
return c
}