twitch-bot/cli_validateConfig.go
Knut Ahlers d8c6f8d221
[core] Split out cli commands
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2023-03-24 21:41:38 +01:00

16 lines
319 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(args []string) error {
return errors.Wrap(
loadConfig(cfg.Config),
"loading config",
)
},
})
}