mirror of
https://github.com/elyby/chrly.git
synced 2024-12-24 14:09:56 +05:30
20 lines
366 B
Go
20 lines
366 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
|
|
"ely.by/chrly/internal/di"
|
|
)
|
|
|
|
var serveCmd = &cobra.Command{
|
|
Use: "serve",
|
|
Short: "Starts HTTP handler for the skins system",
|
|
RunE: func(cmd *cobra.Command, args []string) error {
|
|
return startServer(di.ModuleSkinsystem, di.ModuleProfiles, di.ModuleSigner)
|
|
},
|
|
}
|
|
|
|
func init() {
|
|
RootCmd.AddCommand(serveCmd)
|
|
}
|