20 lines
358 B
Go
20 lines
358 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: "Startet den Web-Server",
|
||
|
Long: "Startet den Web-Server für myapp",
|
||
|
Run: func(cmd *cobra.Command, args []string) {
|
||
|
web.Start()
|
||
|
},
|
||
|
}
|
||
|
|
||
|
func init() {
|
||
|
rootCmd.AddCommand(webCmd)
|
||
|
}
|