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.
 
 
 

24 lines
323 B

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
}