mirror of
https://github.com/coaidev/coai.git
synced 2025-05-21 14:00:13 +09:00
20 lines
241 B
Go
20 lines
241 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
|
|
default:
|
|
return false
|
|
}
|
|
}
|