Skip to content

[CLI] Extract Blueprints v1-specific parts into BlueprintsV1Handler #2366

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 19 commits into from

Conversation

adamziel
Copy link
Collaborator

@adamziel adamziel commented Jul 14, 2025

Motivation for the change, related issues

This PR sets the stage for integrating Blueprints v2. All the Blueprints v1-specific parts are moved to a new class called BlueprintsV1Handler. This opens the door to implementing BlueprintsV2Handler.

A part of #2223

Implementation details

This PR mostly moves code around. The only other significant change is kebab-casing CLI args while still supporting camel case notation via hidden yargs arguments.

Testing Instructions (or ideally a Blueprint)

  • CI
  • Run a few CLI commands and confirm they still work, e.g.
PHP=7.4 node --experimental-wasm-jspi --stack-trace-limit=100 --loader=./packages/meta/src/node-es-module-loader/loader.mts ./packages/playground/cli/src/cli.ts server --wp=6.8 --php=8.4

npx @wp-playground/cli@latest server --mount=.:/wordpress/wp-content/plugins/MY-PLUGIN-DIRECTORY

npx @wp-playground/cli@latest server --blueprint=my-blueprint.json

And a few others from https://wordpress.github.io/wordpress-playground/developers/local-development/wp-playground-cli

@adamziel adamziel changed the title Start porting Blueprints v2 [CLI] Extract Blueprints v1-specific parts into BlueprintsV1Handler Jul 15, 2025
@adamziel
Copy link
Collaborator Author

Superseded by #2392

@adamziel adamziel closed this Jul 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant