Skip to content

feat(core): wire refresh mode through scaffold pipeline - #177

Merged
ulises-jeremias merged 2 commits into
mainfrom
feat/issue-165-refresh-pin-wiring
Jul 16, 2026
Merged

feat(core): wire refresh mode through scaffold pipeline#177
ulises-jeremias merged 2 commits into
mainfrom
feat/issue-165-refresh-pin-wiring

Conversation

@ulises-jeremias

Copy link
Copy Markdown
Member

Summary

  • Validates --refresh values (always, stale, manual) like CNA
  • Forwards refresh from CLI options to create_python_app, scaffold_project, and download_repository
  • Makes --no-cache use the explicit refresh=always path, not just env fallback
  • Keeps --pin behavior covered with a regression test

Closes#165

CNA reference

  • packages/create-awesome-node-app/src/index.ts refresh validation
  • packages/create-node-app-core/paths.ts / git.ts refresh option plumbing

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_cli.py packages/create-python-app-core/src/create_python_app_core/api.py packages/create-python-app-core/src/create_python_app_core/installer.py packages/create-python-app-core/tests/test_api.py packages/create-python-app-core/tests/test_installer.py
  • uv run pytest packages/create-awesome-python-app/tests/test_cli.py packages/create-python-app-core/tests/test_api.py packages/create-python-app-core/tests/test_installer.py -q
  • uv run pyright packages/create-awesome-python-app/src/create_awesome_python_app/cli.py packages/create-python-app-core/src/create_python_app_core/api.py packages/create-python-app-core/src/create_python_app_core/installer.py

Review notes

This PR is stacked on #176.

Made with Cursor

@ulises-jeremias
ulises-jeremiasforce-pushed the feat/issue-164-custom-options-prompts branch from 11b3b7d to 8ea6297CompareJuly 16, 2026 16:37
@ulises-jeremias
ulises-jeremiasforce-pushed the feat/issue-165-refresh-pin-wiring branch from 8b19cbf to 14e8a22CompareJuly 16, 2026 16:37
@ulises-jeremias
ulises-jeremiasforce-pushed the feat/issue-164-custom-options-prompts branch from 8ea6297 to cbdc138CompareJuly 16, 2026 16:44
@ulises-jeremias
ulises-jeremiasforce-pushed the feat/issue-165-refresh-pin-wiring branch from 14e8a22 to c75dd09CompareJuly 16, 2026 16:44
Co-authored-by: Cursor <cursoragent@cursor.com>
@ulises-jeremias
ulises-jeremiasforce-pushed the feat/issue-165-refresh-pin-wiring branch from c75dd09 to 48b4985CompareJuly 16, 2026 16:52
@ulises-jeremias
ulises-jeremias changed the base branch from feat/issue-164-custom-options-prompts to mainJuly 16, 2026 16:52
Co-authored-by: Cursor <cursoragent@cursor.com>
@ulises-jeremias
ulises-jeremias merged commit c7ef909 into mainJul 16, 2026
9 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] Wire --refresh, --pin, and CPA_REFRESH_AFTER_HOURS through installer/git cache

1 participant

@ulises-jeremias