Commands final class
Minn\Cli\Commands · public/minn/src/Minn/Cli/Commands.php · 100 lines
The verbs the engine answers to. Every one is registered for the before_wp_load phase, which WP-CLI runs before it looks for WordPress, and each replaces the bundled subcommand of the same name (a deferred addition lands after the bundle and overrides its leaf).
Public
| static | register(): void# | Registers every engine verb with WP-CLI in the phase it runs in. |
Internals 2
Private and protected methods: how the class does its work. Not a contract; they change whenever the code is tidied.
| private | leaf(string $name, callable|array $callable, array $args): void# | Registers a leaf and re-adds it after the parent lands. WP-CLI registers `plugin` as a namespace first; its later class command would otherwise overwrite our list.
| ||||||
| private | replace(string $name, callable|array|string $callable, array $args): void# | A root command the bundle also registers. Re-add after the bundle without recursing into our own after_add_command hook.
|
Nothing matches.