Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ServerCmd = &cobra.Command{ Use: "server", Short: "start the server", Long: "start a server with the configuration given by `--config` on the address given by `--address`. The server will run until stopped.", RunE: func(cmd *cobra.Command, args []string) error { configBytes, err := ioutil.ReadFile(viper.GetString("config")) if err != nil { return err } config, err := store.FromConfig(configBytes) if err != nil { return err } web.Run(viper.GetString("address"), config) return nil }, }
ServerCmd starts the server
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.