mirror of
https://github.com/elyby/chrly.git
synced 2024-12-26 06:59:55 +05:30
18 lines
301 B
Go
18 lines
301 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var serveCmd = &cobra.Command{
|
|
Use: "serve",
|
|
Short: "Starts HTTP handler for the skins system",
|
|
RunE: func(cmd *cobra.Command, args []string) error {
|
|
return startServer("skinsystem", "api")
|
|
},
|
|
}
|
|
|
|
func init() {
|
|
RootCmd.AddCommand(serveCmd)
|
|
}
|