verify -> validate

This commit is contained in:
yusing 2024-03-29 01:50:00 +00:00
parent 15d9436d52
commit d20e4d435a
3 changed files with 5 additions and 5 deletions

Binary file not shown.

View file

@ -12,11 +12,11 @@ type Args struct {
const (
CommandStart = ""
CommandVerify = "verify"
CommandValidate = "validate"
CommandReload = "reload"
)
var ValidCommands = []string{CommandStart, CommandVerify, CommandReload}
var ValidCommands = []string{CommandStart, CommandValidate, CommandReload}
func getArgs() Args {
var args Args

View file

@ -39,7 +39,7 @@ func main() {
logrus.Info(cfg.Value())
if args.Command == CommandVerify {
if args.Command == CommandValidate {
logrus.Printf("config OK")
return
}