Skip to content

CLI improvements - #98

Merged
ion232 merged 5 commits into
mainfrom
feat/cli-improvements
Aug 23, 2026
Merged

ion232 merged 5 commits into
mainfrom
feat/cli-improvements

Conversation

@ion232

@ion232 ion232 commented Aug 23, 2026

Copy link
Copy Markdown
Owner
  • cli: add json output, fix enum handling and error propagation
  • cli: add commands for all remaining lib endpoint categories
  • chore: fix clippy warnings
  • chore: update readme

ion232 added 4 commits August 23, 2026 09:48
- Global --json flag with a shared output helper, replacing ad-hoc
  println!("{:#?}", ...) everywhere.
- Replace hand-rolled enum matches (PerfType, VariantKey, Color, Room)
  with clap::ValueEnum + From impls, matching the existing puzzles.rs
  pattern.
- Replace println!+Ok(()) short-circuits on invalid input with real
  clap validation/errors so exit codes reflect failure.
- Wrap fallible calls with color-eyre's wrap_err_with for readable
  error context instead of raw library error Debug output.
- Add assert_cmd-based CLI tests covering help output, invalid-enum
  rejection, and the --json flag.
- Add missing Serialize derives on two external_engine response types
  (and their nested structs) needed for the json output path.
Adds account, relations, simuls, tv, openings, tablebase, analysis,
messaging, fide, games, studies, bot, teams, arena-tournaments,
swiss-tournaments, broadcasts, and bulk-pairings command modules,
wired into main.rs alongside the existing board/puzzles/engine/
challenges/users.
@ion232 ion232 changed the title feat/cli improvements CLI improvements Aug 23, 2026
@ion232
ion232 merged commit d6067f6 into main Aug 23, 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