Bundled final class
Minn\Cli\Bundled · public/minn/src/Minn/Cli/Bundled.php · 64 lines
WP-CLI's own bundled command for a verb the engine answers. Its docs give an engine verb the same synopsis (the arguments, defaults and allowed values the running WP-CLI accepts, which change between releases), and a call the engine does not answer itself is handed back to it, run against the engine's WordPress runtime as any bundled command is.
Public
| static | docs(string $class, string $method): array# | The bundled method's description and synopsis, as WP-CLI reads them from its doc comment, for add_command's arguments; empty when this WP-CLI has no such command. @return array<string, string> | ||||||
| static | loadable(): bool# | Whether WP-CLI can load this site, as it checks before loading one: the core version file readable under ABSPATH and a wp-config.php found. A Minn site carries both (its placeholder files); a bare webroot does not. | ||||||
| static | run(string $class, string $method, array $args, array $assocArgs): void# | Runs the bundled command for a call: WP-CLI loads the site (the engine stands in for WordPress, plugins loaded), then the bundled method answers with the arguments the shared synopsis already validated.
|
Nothing matches.