mirror of
https://github.com/elyby/chrly.git
synced 2024-11-30 10:42:14 +05:30
3f81a0c18a
Implemented graceful server shutdown Extract records manipulating API into separate handlers group
18 lines
297 B
Go
18 lines
297 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var serveCmd = &cobra.Command{
|
|
Use: "serve",
|
|
Short: "Starts HTTP handler for the skins system",
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
startServer([]string{"skinsystem", "api"})
|
|
},
|
|
}
|
|
|
|
func init() {
|
|
RootCmd.AddCommand(serveCmd)
|
|
}
|