Skip to content
Corex

DocsCommand

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

The WP-CLI wrapper for wp corex docs:generate. Thin: it runs the (tested) generator over the configured source layers and reports how many reference pages were written. The only class here that references WP_CLI.

__construct(DocsGenerator $generator, array $layers, string $outputDir)

Section titled “__construct(DocsGenerator $generator, array $layers, string $outputDir)”