mirror of
https://github.com/coaidev/coai.git
synced 2025-05-19 13:00:14 +09:00
23 lines
303 B
Go
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
|
|
}
|
|
}
|