mirror of
https://github.com/coaidev/coai.git
synced 2025-05-19 04:50:14 +09:00
25 lines
327 B
Go
25 lines
327 B
Go
package cli
|
|
|
|
func Run() bool {
|
|
args := GetArgs()
|
|
if len(args) == 0 {
|
|
return false
|
|
}
|
|
|
|
param := args[1:]
|
|
switch args[0] {
|
|
case "help":
|
|
Help()
|
|
case "invite":
|
|
CreateInvitationCommand(param)
|
|
case "token":
|
|
CreateTokenCommand(param)
|
|
case "root":
|
|
UpdateRootCommand(param)
|
|
default:
|
|
return false
|
|
}
|
|
|
|
return true
|
|
}
|