twitch-bot/cli_validateConfig.go
Knut Ahlers 673ed1e29a
Lint: Resolve linter issues
occurred with new Go / golangci-lint version

Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-02-18 13:42:00 +01:00

17 lines
314 B
Go

package main
import "github.com/pkg/errors"
func init() {
cli.Add(cliRegistryEntry{
Name: "validate-config",
Description: "Try to load configuration file and report errors if any",
Run: func([]string) error {
return errors.Wrap(
loadConfig(cfg.Config),
"loading config",
)
},
})
}