gosocketio/cli/start.go

20 lines
342 B
Go
Raw Permalink Normal View History

2023-11-30 17:38:20 +08:00
package cli
import (
server "git.pyer.club/kingecg/gosocketio/server"
"github.com/spf13/cobra"
)
var startCmd = &cobra.Command{
Use: "start",
Short: "start the socketio server",
Long: `start the socketio server`,
Run: func(cmd *cobra.Command, args []string) {
server.Luanch()
},
}
func init() {
rootCmd.AddCommand(startCmd)
}