Skip to content

feat(cli): prompt cpa custom options interactively - #176

Merged
ulises-jeremias merged 1 commit into
mainfrom
feat/issue-164-custom-options-prompts
Jul 16, 2026
Merged

feat(cli): prompt cpa custom options interactively#176
ulises-jeremias merged 1 commit into
mainfrom
feat/issue-164-custom-options-prompts

Conversation

@ulises-jeremias

Copy link
Copy Markdown
Member

Summary

  • Loads cpa.config.json from the resolved template before scaffold in interactive mode
  • Prompts supported customOptions and forwards answers through options["set"]
  • Keeps --set as the final override and skips prompting keys supplied by --set
  • Falls back to registry customOptions when the template config has none

Closes#164

CNA reference

  • packages/create-awesome-node-app/src/options.ts customOptions flow

Test plan

  • uv run ruff check packages/create-awesome-python-app/src/create_awesome_python_app/cli.py packages/create-awesome-python-app/tests/test_interactive.py
  • uv run pytest packages/create-awesome-python-app/tests/test_interactive.py -q
  • uv run pyright packages/create-awesome-python-app/src/create_awesome_python_app/cli.py

Review notes

This PR is stacked on #175. It intentionally only passes values to the scaffold context; actual template Jinja usage is tracked in cpa-templates #32.

Made with Cursor

@ulises-jeremias
ulises-jeremiasforce-pushed the feat/issue-163-extension-multiselect branch from eff3f7e to a6e8410CompareJuly 16, 2026 16:28
@ulises-jeremias
ulises-jeremiasforce-pushed the feat/issue-164-custom-options-prompts branch from 3768af2 to 11b3b7dCompareJuly 16, 2026 16:28
@ulises-jeremias
ulises-jeremiasforce-pushed the feat/issue-163-extension-multiselect branch from a6e8410 to d52729dCompareJuly 16, 2026 16:37
@ulises-jeremias
ulises-jeremiasforce-pushed the feat/issue-164-custom-options-prompts branch from 11b3b7d to 8ea6297CompareJuly 16, 2026 16:37
Co-authored-by: Cursor <cursoragent@cursor.com>
@ulises-jeremias
ulises-jeremiasforce-pushed the feat/issue-164-custom-options-prompts branch from 8ea6297 to cbdc138CompareJuly 16, 2026 16:44
@ulises-jeremias
ulises-jeremias changed the base branch from feat/issue-163-extension-multiselect to mainJuly 16, 2026 16:44
@ulises-jeremias
ulises-jeremias merged commit 0a5bb09 into mainJul 16, 2026
10 checks passed
Sign up for freeto 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.

[P1] Interactive prompts for cpa.config.json customOptions

1 participant

@ulises-jeremias