server-run.go 370 Bytes
Newer Older
1
2
package cmd

3
import "github.com/spf13/cobra"
4
5
6
7
8
9
10
11
12
13
14
15
16
17

var serverRunCmd = &cobra.Command{
	Use:   "run",
	Short: "Run server (same as specifying no command)",
	Run:   serverCmd.Run,
}

func init() {
	serverCmd.AddCommand(serverRunCmd)

	if err := setFlags(serverRunCmd, productionMode()); err != nil {
		die("Failed to attach flags to "+serverRunCmd.Name()+" command", err)
	}
}