simple cli with room APIs

This commit is contained in:
David Zhao
2020-11-03 22:01:54 -08:00
parent 925d1c653e
commit 9ebfebe2dd
8 changed files with 626 additions and 4 deletions
+22
View File
@@ -1,3 +1,25 @@
package main
import (
"fmt"
"os"
"github.com/urfave/cli/v2"
"github.com/livekit/livekit-server/cmd/cli/commands"
"github.com/livekit/livekit-server/pkg/logger"
)
// command line util that tests server
func main() {
app := &cli.App{
Name: "livekit-cli",
}
app.Commands = append(app.Commands, commands.RoomCommands...)
logger.InitDevelopment()
if err := app.Run(os.Args); err != nil {
fmt.Println(err)
}
}