Skip to content

T8 project commands - #21

Merged
niden merged 15 commits into
masterfrom
T8-project-commands
Sep 25, 2026
Merged

niden merged 15 commits into
masterfrom
T8-project-commands

Conversation

@niden

@niden niden commented Sep 25, 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 new, creating an ADR project from stubs: front controller, web entry point, crest.php, an action for GET /, composer.json and docker files. It runs nothing - no composer, no docker, no network. --namespace, --php and --phalcon set the root namespace, the PHP version and the Phalcon variant.
  • Added up, down and install, running docker compose up -d, docker compose down and composer install in the app container of a project that new created. --directory names the project.
  • Added Crest\Process\Runner, the seam through which commands run external programs, with ShellRunner as the default. A missing program or working directory is reported as a crest error.
  • Added Crest\Generator\ClassName::namespace(), validating a namespace with the same identifier rule as a class name.
  • stub:publish with no name leaves out the project-* stubs that new renders. They only have an effect where new runs; publish one by name.

Thanks

Assisted-by: Claude Code
Assisted-by: Claude Code
Assisted-by: Claude Code
Assisted-by: Claude Code
Assisted-by: Claude Code
Assisted-by: Claude Code
@niden niden self-assigned this Sep 25, 2026
@niden niden added the enhancement New feature or request label Sep 25, 2026
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

Assisted-by: Claude Code
Assisted-by: Claude Code
Assisted-by: Claude Code
Assisted-by: Claude Code
@github-actions

This comment has been minimized.

@github-actions

Copy link
Copy Markdown

Code Metrics Report

master (4341568) #21 (93e630c) +/-
Coverage 98.8% 98.9% +0.1%
Test Execution Time 1s 2s +1s
Details
  |                     | master (4341568) | #21 (93e630c) |  +/-  |
  |---------------------|------------------|---------------|-------|
+ | Coverage            |            98.8% |         98.9% | +0.1% |
  |   Files             |               40 |            48 |    +8 |
  |   Lines             |              936 |          1070 |  +134 |
+ |   Covered           |              925 |          1059 |  +134 |
- | Test Execution Time |               1s |            2s |   +1s |

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

Files Coverage +/- Patch Coverage Status
src/Command/ComposeCommand.php 100.0% +100.0% 100.0% added
src/Command/DownCommand.php 100.0% +100.0% 100.0% added
src/Command/InstallCommand.php 100.0% +100.0% 100.0% added
src/Command/Make/CommandCommand.php 100.0% 0.0% 100.0% modified
src/Command/Make/MiddlewareCommand.php 100.0% 0.0% 100.0% modified
src/Command/Make/NamedArtifactCommand.php 100.0% +100.0% 100.0% added
src/Command/Make/ProviderCommand.php 100.0% 0.0% 100.0% modified
src/Command/Make/ResponderCommand.php 100.0% 0.0% 100.0% modified
src/Command/NewCommand.php 100.0% +100.0% 100.0% added
src/Command/Stub/PublishCommand.php 100.0% 0.0% 100.0% modified
src/Command/UpCommand.php 100.0% +100.0% 100.0% added
src/Commands.php 100.0% 0.0% 100.0% modified
src/Generator/ClassName.php 100.0% 0.0% 100.0% modified
src/Generator/Stub.php 100.0% 0.0% 100.0% modified
src/Process/Runner.php 0.0% 0.0% - added
src/Process/ShellRunner.php 100.0% +100.0% 100.0% added

Reported by octocov

@niden
niden merged commit 6e58901 into master Sep 25, 2026
24 checks passed
@niden
niden deleted the T8-project-commands branch September 25, 2026 17:11
@niden niden mentioned this pull request Sep 25, 2026
10 tasks
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