mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-12-20 11:51:17 +00:00
Knut Ahlers
673ed1e29a
occurred with new Go / golangci-lint version Signed-off-by: Knut Ahlers <knut@ahlers.me>
16 lines
314 B
Go
16 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",
|
|
)
|
|
},
|
|
})
|
|
}
|