Skip to content

Add stats and achievements CRUD commands#14

Open
cloud9c wants to merge 1 commit intofeat/config-commandsfrom
feat/stats-achievements-commands
Open

Add stats and achievements CRUD commands#14
cloud9c wants to merge 1 commit 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

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>
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

Comments