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.

25 lines
431 B

  1. package main
  2. import (
  3. "os"
  4. "github.com/arnaucube/gogame/cmd"
  5. "github.com/fatih/color"
  6. "github.com/urfave/cli"
  7. )
  8. func main() {
  9. app := cli.NewApp()
  10. app.Name = "gogame"
  11. app.Version = "0.0.1-alpha"
  12. app.Flags = []cli.Flag{
  13. cli.StringFlag{Name: "config"},
  14. }
  15. app.Commands = []cli.Command{}
  16. app.Commands = append(app.Commands, cmd.ServerCommands...)
  17. err := app.Run(os.Args)
  18. if err != nil {
  19. color.Red(err.Error())
  20. }
  21. }