mirror of
https://github.com/livekit/livekit.git
synced 2026-03-30 15:35:41 +00:00
26 lines
425 B
Go
26 lines
425 B
Go
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)
|
|
}
|
|
}
|