loic-go/cmd/web.go
Daniel.Sy 483484e2e2 fix(#1): 🚑 Fix application stopping early (#4)
Co-authored-by: Daniel Sy <Daniel.Sy@t-systems.com>
Reviewed-on: Daniel.Sy/loic-go#4
2025-03-28 02:56:49 +00:00

19 lines
350 B
Go

package cmd
import (
"forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/Daniel.Sy/loic-go/pkg/web"
"github.com/spf13/cobra"
)
var webCmd = &cobra.Command{
Use: "web",
Short: "starts the web server",
Long: "starts the web UI for LOIC",
Run: func(cmd *cobra.Command, args []string) {
web.Start()
},
}
func init() {
rootCmd.AddCommand(webCmd)
}