initial structure

This commit is contained in:
arnaucube
2019-06-13 18:54:12 +02:00
parent f823601eed
commit f7a5bbb91e
14 changed files with 456 additions and 0 deletions

24
cmd/server.go Normal file
View 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
}