Draft: poop

This commit is contained in:
2025-11-10 13:16:29 +08:00
parent dbd2ed6469
commit 30fb3d8c73
18 changed files with 503 additions and 44 deletions

View File

@@ -3,6 +3,7 @@ package cmds
import (
"fmt"
"inp2025/tcp"
"inp2025/workflows"
"github.com/spf13/cobra"
)
@@ -12,7 +13,8 @@ func ping() {
for _, msg := range msgs {
fmt.Printf("client sending: '%s'\n", msg)
resp, err := tcp.Get(":8080", "/test", map[string]string{"msg": msg})
resp, err := tcp.Get(":8080", "/test/ping",
map[string]string{"msg": msg})
if err != nil {
panic(err)
}
@@ -40,6 +42,12 @@ func pull() {
var clientCmd = &cobra.Command{
Use: "client",
Run: func(cmd *cobra.Command, args []string) {
ping()
err := workflows.GameClient()
if err != nil {
panic(err)
}
},
}
func init() {
}