Skip to content

feat(commandline): add graveyard CLI with Spectre.Console#434

Draft
victorfrye wants to merge 6 commits into
mainfrom
feat/commandline
Draft

feat(commandline): add graveyard CLI with Spectre.Console#434
victorfrye wants to merge 6 commits into
mainfrom
feat/commandline

Conversation

@victorfrye

Copy link
Copy Markdown
Owner

Summary

Adds a new .NET 10 CLI tool (graveyard) to the repo — a developer helper for maintaining corpses.json directly from the terminal using Spectre.Console.

Commands

Command Description
graveyard corpses sort Sort corpses.json by canonical order (deathDate DESC, name ASC)
graveyard corpses sort --verify Verify sort order without writing; exits 1 with diff if unsorted
graveyard corpses add Add a new corpse entry interactively or via CLI args
graveyard corpses show Show a single corpse entry with generated obituary
graveyard corpses list List all entries as a Spectre table or JSON

Details

  • Project: src/CommandLine/VictorFrye.MicrosoftGraveyard.CommandLine targeting net10.0
  • Tests: src/CommandLine.Tests/ — 42 xUnit v3 tests via Microsoft.Testing.Platform, 80% coverage threshold
  • Aspire: Registered in AppHost as a run-on-demand resource (WithExplicitStart()) — won't auto-start, launch from dashboard
  • Data file: Reads/writes src/WebClient/app/graveyard/corpses.json relative to CWD (run from repo root)
  • Interactive mode: corpses add falls back to Spectre.Console prompts when run standalone (no Aspire env vars present)

Validation

  • corpses sort — 175 corpses sorted, count unchanged
  • corpses sort --verify — passes cleanly after sort
  • ✅ Web smoke test — all 175 headstones render at http://localhost:3000
  • ✅ 42 unit tests passing

Notes

  • Not yet packaged/published — local dev only at this stage
  • Packaging can be added in a follow-up when distribution needs are defined

victorfrye and others added 6 commits May 19, 2026 12:26
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…ommands

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…orpseValidator

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown

Azure Static Web Apps: Your stage site is ready! Visit it here: https://zealous-plant-083d54e10-434.centralus.5.azurestaticapps.net

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