mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-12-30 00:21:16 +00:00
Knut Ahlers
c63793be2d
and fix some newly appearing linter errors Signed-off-by: Knut Ahlers <knut@ahlers.me>
19 lines
364 B
Go
19 lines
364 B
Go
package main
|
|
|
|
import (
|
|
"github.com/Luzifer/go_helpers/v2/cli"
|
|
"github.com/pkg/errors"
|
|
)
|
|
|
|
func init() {
|
|
cliTool.Add(cli.RegistryEntry{
|
|
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",
|
|
)
|
|
},
|
|
})
|
|
}
|