Skip to content

T48 mvc crest init - #61

Merged
niden merged 3 commits into
masterfrom
T48-mvc-crest-init
Oct 14, 2026
Merged

niden merged 3 commits into
masterfrom
T48-mvc-crest-init

Conversation

@niden

@niden niden commented Oct 14, 2026

Copy link
Copy Markdown
Member

Hello!

In raising this pull request, I confirm the following:

  • I have checked that another pull request for this purpose does not exist
  • I wrote some tests for this PR
  • composer test, composer cs and composer analyze all pass
  • I have created a PR for the documentation about this change, if user facing

  • Added the flavor question of init, and init --flavor: init proposes adr or mvc from the default folders of each flavor that the project has, and asks for it after the namespace. A tie gives adr.
  • Added Crest\Project\Config::NO_CLASS_PATHS (views), the path keys of folders with no classes, and Crest\Project\Survey::flavor().
  • Changed init: it asks one more question, the flavor, after the namespace, so a script that sends answers to init needs one more line. For an MVC project, it asks for the MVC paths. views is a folder in the project, with no psr-4 check; its proposal is the only folder in themes/ when themes/default does not exist.
  • Changed Crest\Project\Survey::paths() and settings(): paths() takes the root, the folder and the flavor; settings() takes the root and the flavors to compare.

Thanks

niden added 3 commits October 14, 2026 09:46
Assisted-by: Claude Code
Assisted-by: Claude Code
Assisted-by: Claude Code
@niden
niden requested a review from Jeckerson October 14, 2026 14:48
@niden niden self-assigned this Oct 14, 2026
@niden niden added the enhancement New feature or request label Oct 14, 2026
@github-actions

This comment has been minimized.

@github-actions

Copy link
Copy Markdown

Code Metrics Report

master (4c3d284) #61 (1d75e81) +/-
Coverage 99.6% 99.6% +0.0%
Test Execution Time 7s 8s +1s
Details
  |                     | master (4c3d284) | #61 (1d75e81) |  +/-  |
  |---------------------|------------------|---------------|-------|
+ | Coverage            |            99.6% |         99.6% | +0.0% |
  |   Files             |               72 |            72 |     0 |
  |   Lines             |             1885 |          1920 |   +35 |
+ |   Covered           |             1878 |          1913 |   +35 |
- | Test Execution Time |               7s |            8s |   +1s |

Code coverage of files in pull request scope (100.0% → 100.0%, patch 100.0%)

Files Coverage +/- Patch Coverage Status
src/Command/InitCommand.php 100.0% 0.0% 100.0% modified
src/Command/Questions.php 100.0% 0.0% 100.0% modified
src/Generator/Project/Skeletons.php 100.0% 0.0% - modified
src/Project/Config.php 100.0% 0.0% - modified
src/Project/Survey.php 100.0% 0.0% 100.0% modified

Reported by octocov

@niden
niden merged commit 7502e26 into master Oct 14, 2026
24 checks passed
@niden
niden deleted the T48-mvc-crest-init branch October 14, 2026 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant