coai/cli/exec.go
2023-10-28 22:31:02 +08:00

23 lines
303 B
Go

package cli
func Run() bool {
args := GetArgs()
if len(args) == 0 {
return false
}
switch args[0] {
case "help":
Help()
return true
case "invite":
CreateInvitationCommand(args[1:])
return true
case "filter":
FilterApiKeyCommand(args[1:])
return true
default:
return false
}
}