Skip to content

feat(cli): --formats registry surface (no render wiring)#212

Open
MohammedAnasNathani wants to merge 1 commit into
alphacrack:mainfrom
MohammedAnasNathani:feat/formats-cli-registry
Open

feat(cli): --formats registry surface (no render wiring)#212
MohammedAnasNathani wants to merge 1 commit into
alphacrack:mainfrom
MohammedAnasNathani:feat/formats-cli-registry

Conversation

@MohammedAnasNathani

Copy link
Copy Markdown

Summary

Closes #192 (surface-only slice of #117).

What

  • New src/readme2demo/formats.py: FormatSpec, FORMATS (demo/gif implemented; podcast/promo/social reserved with tracking issues), pure parse_formats
  • Config.formats defaults to ["demo", "gif"] with field validator
  • --formats on runtyper.BadParameter on bad values (never misattributed to toml)
  • Startup echo: Selected formats: … (Rich-escaped)
  • Docs: usage table + toml examples

Explicitly not in this PR

  • No changes to orchestrator / render / manifestcfg.formats has zero effect on what is produced
  • No --skip-video reconciliation
  • No resume --formats

Test plan

  • pytest tests/test_config.py tests/test_cli.py -k format (9 passed)
  • Full test_config + test_cli green
  • ruff check on touched modules
  • git grep shows no cfg.formats in pipeline modules

Introduce formats.py with FormatSpec/FORMATS/parse_formats, Config.formats
defaulting to demo+gif, and a --formats CLI option validated as a real
flag (not a false toml error). Unimplemented formats report tracking
issues; the pipeline still keys render solely off skip_video.

Closes alphacrack#192
Copilot AI review requested due to automatic review settings July 22, 2026 23:32

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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.

--formats: comma-separated CLI option validated against a format registry table (surface-only slice of #117)

2 participants