2025-03-25 16:53:35 +00:00
|
|
|
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",
|
2025-03-28 02:54:23 +00:00
|
|
|
Short: "starts the web server",
|
|
|
|
Long: "starts the web UI for LOIC",
|
2025-03-25 16:53:35 +00:00
|
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
|
|
web.Start()
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
rootCmd.AddCommand(webCmd)
|
|
|
|
}
|