mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-20 12:42:34 +02:00
verify -> validate
This commit is contained in:
parent
15d9436d52
commit
d20e4d435a
3 changed files with 5 additions and 5 deletions
BIN
bin/go-proxy
BIN
bin/go-proxy
Binary file not shown.
|
@ -12,11 +12,11 @@ type Args struct {
|
||||||
|
|
||||||
const (
|
const (
|
||||||
CommandStart = ""
|
CommandStart = ""
|
||||||
CommandVerify = "verify"
|
CommandValidate = "validate"
|
||||||
CommandReload = "reload"
|
CommandReload = "reload"
|
||||||
)
|
)
|
||||||
|
|
||||||
var ValidCommands = []string{CommandStart, CommandVerify, CommandReload}
|
var ValidCommands = []string{CommandStart, CommandValidate, CommandReload}
|
||||||
|
|
||||||
func getArgs() Args {
|
func getArgs() Args {
|
||||||
var args Args
|
var args Args
|
||||||
|
|
|
@ -39,7 +39,7 @@ func main() {
|
||||||
|
|
||||||
logrus.Info(cfg.Value())
|
logrus.Info(cfg.Value())
|
||||||
|
|
||||||
if args.Command == CommandVerify {
|
if args.Command == CommandValidate {
|
||||||
logrus.Printf("config OK")
|
logrus.Printf("config OK")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue