GoDoxy/agent/cmd/args.go
2025-02-11 01:10:09 +08:00

16 lines
268 B
Go

package main
const (
CommandStart = ""
CommandNewClient = "new-client"
)
type agentCommandValidator struct{}
func (v agentCommandValidator) IsCommandValid(cmd string) bool {
switch cmd {
case CommandStart, CommandNewClient:
return true
}
return false
}