mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-11-09 16:50:01 +00:00
17 lines
319 B
Go
17 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",
|
||
|
)
|
||
|
},
|
||
|
})
|
||
|
}
|