You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package main
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/arnaucube/gogame/cmd"
|
|
"github.com/fatih/color"
|
|
"github.com/urfave/cli"
|
|
)
|
|
|
|
func main() {
|
|
app := cli.NewApp()
|
|
app.Name = "gogame"
|
|
app.Version = "0.0.1-alpha"
|
|
app.Flags = []cli.Flag{
|
|
cli.StringFlag{Name: "config"},
|
|
}
|
|
|
|
app.Commands = []cli.Command{}
|
|
app.Commands = append(app.Commands, cmd.ServerCommands...)
|
|
err := app.Run(os.Args)
|
|
if err != nil {
|
|
color.Red(err.Error())
|
|
}
|
|
}
|