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

  1. package cmd
  2. import (
  3. "github.com/urfave/cli"
  4. )
  5. var ServerCommands = []cli.Command{
  6. {
  7. Name: "start",
  8. Aliases: []string{},
  9. Usage: "start the server",
  10. Action: cmdStart,
  11. },
  12. }
  13. func cmdStart(c *cli.Context) error {
  14. if err := config.MustRead(c); err != nil {
  15. return err
  16. }
  17. endpoint.Serve()
  18. return nil
  19. }