Skip to content
Corex

MakeCommand

Corex\Cli\Commands\MakeCommand · class · CLI layer

The WP-CLI-facing wrapper for the generators. Thin: it parses the name + --force, runs the (tested) engine, and reports the structured result. The only class that references WP_CLI; instantiated only when WP-CLI is present.

__construct(GeneratorEngine $engine, array $generators, ?BlockScaffolder $blockScaffolder, ?GeneratorContext $context, ?ApiResourceScaffolder $apiScaffolder, ?SiteScaffolder $siteScaffolder, ?SiteRepositoryResolver $siteRepositories)

Section titled “__construct(GeneratorEngine $engine, array $generators, ?BlockScaffolder $blockScaffolder, ?GeneratorContext $context, ?ApiResourceScaffolder $apiScaffolder, ?SiteScaffolder $siteScaffolder, ?SiteRepositoryResolver $siteRepositories)”

run(string $type, array $args, array $assoc): void

Section titled “run(string $type, array $args, array $assoc): void”