Skip to content

Add --json flag to coin command#8

Merged
fluo10 merged 1 commit intomainfrom
feat/coin-json
Mar 14, 2026
Merged

Add --json flag to coin command#8
fluo10 merged 1 commit intomainfrom
feat/coin-json

Conversation

@fluo10
Copy link
Copy Markdown
Owner

@fluo10 fluo10 commented Mar 14, 2026

Summary

  • tryluck coin --json outputs a JSON string array (e.g. ["heads", "tails"])
  • Combined with --boolean, outputs ["true", "false"]
  • Consistent with the MCP tool response format

Test plan

  • tryluck coin --json 3 → string array of "heads"/"tails"
  • tryluck coin --json --boolean 3 → string array of "true"/"false"
  • tryluck coin 3 (no flags) → unchanged plain text behavior

🤖 Generated with Claude Code

Output a JSON string array (e.g. ["heads","tails"]) consistent with
the MCP tool response format. Combines with --boolean to output
["true","false"] strings.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@fluo10 fluo10 merged commit e14d2d9 into main Mar 14, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant