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