mirror of
https://github.com/arnaucube/gogame.git
synced 2026-02-06 19:16:40 +01:00
initial structure
This commit is contained in:
24
cmd/server.go
Normal file
24
cmd/server.go
Normal file
@@ -0,0 +1,24 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"github.com/urfave/cli"
|
||||
)
|
||||
|
||||
var ServerCommands = []cli.Command{
|
||||
{
|
||||
Name: "start",
|
||||
Aliases: []string{},
|
||||
Usage: "start the server",
|
||||
Action: cmdStart,
|
||||
},
|
||||
}
|
||||
|
||||
func cmdStart(c *cli.Context) error {
|
||||
if err := config.MustRead(c); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
endpoint.Serve()
|
||||
|
||||
return nil
|
||||
}
|
||||
Reference in New Issue
Block a user