Skip to content

Comments

Add stats and achievements CRUD commands#14

Open
cloud9c wants to merge 2 commits intofeat/config-commandsfrom
feat/stats-achievements-commands
Open

Add stats and achievements CRUD commands#14
cloud9c wants to merge 2 commits intofeat/config-commandsfrom
feat/stats-achievements-commands

Conversation

@cloud9c
Copy link

@cloud9c cloud9c commented Feb 19, 2026

Summary

  • Adds wvdsh stats subcommands: list, create, update, delete for managing game stats
  • Adds wvdsh achievements subcommands: list, create, update, delete for managing game achievements
  • Extracts shared HTTP client logic into a reusable ApiClient struct (api_client.rs)

Usage

wvdsh stats list
wvdsh stats create kills_total --display-name "Total Kills" --authority client --type integer
wvdsh stats update kills_total --display-name "Lifetime Kills"
wvdsh stats delete kills_total

wvdsh achievements list
wvdsh achievements create first_blood --display-name "First Blood" --description "Get your first kill" --image "img.png" --authority client --points 10
wvdsh achievements update first_blood --points 25 --stat-identifier kills_total --stat-threshold 1
wvdsh achievements update first_blood --stat-identifier none  # unlink stat
wvdsh achievements delete first_blood

Test plan

  • cargo check passes
  • cargo clippy — no new warnings
  • Manual test against staging: stats list/create/update/delete cycle
  • Manual test against staging: achievements list/create/update/delete cycle

🤖 Generated with Claude Code

cloud9c and others added 2 commits February 18, 2026 16:00
Add `wvdsh stats` and `wvdsh achievements` subcommands for managing
game stats and achievements via the HTTP API. Extracts shared HTTP
client logic into a reusable ApiClient struct.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Change --image flag from URL string to local file path. Add
upload_image() that validates the file, requests a presigned
upload URL from the backend, and PUTs the bytes to R2. Add
put_presigned() to ApiClient for raw byte uploads.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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