2017-06-30 21:10:25 +05:30
|
|
|
package cmd
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/spf13/cobra"
|
2024-03-05 17:37:54 +05:30
|
|
|
|
|
|
|
"ely.by/chrly/internal/di"
|
2017-06-30 21:10:25 +05:30
|
|
|
)
|
|
|
|
|
|
|
|
var serveCmd = &cobra.Command{
|
|
|
|
Use: "serve",
|
2020-01-03 03:21:57 +05:30
|
|
|
Short: "Starts HTTP handler for the skins system",
|
2024-02-07 18:59:52 +05:30
|
|
|
RunE: func(cmd *cobra.Command, args []string) error {
|
2024-03-05 17:37:54 +05:30
|
|
|
return startServer(di.ModuleSkinsystem, di.ModuleProfiles, di.ModuleSigner)
|
2017-06-30 21:10:25 +05:30
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
RootCmd.AddCommand(serveCmd)
|
|
|
|
}
|