We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f19454f commit 637ae40Copy full SHA for 637ae40
cmd/share_game.go
@@ -59,14 +59,19 @@ var shareGameCmd = &cobra.Command{
59
}
60
61
62
+ joinSecret, err := cli.InputOptional("Join secret (optional):")
63
+ abort(err)
64
+
65
type request struct {
- GameURL string `json:"game_url"`
- GameId string `json:"game_id"`
66
+ GameURL string `json:"game_url"`
67
+ GameId string `json:"game_id"`
68
+ JoinSecret string `json:"join_secret,omitempty"`
69
70
71
data := request{
- GameURL: gameURL,
- GameId: gameId,
72
+ GameURL: gameURL,
73
+ GameId: gameId,
74
+ JoinSecret: joinSecret,
75
76
77
jsonData, err := json.Marshal(data)
0 commit comments