$commandClasses : array
The class names of the commands that can be handled.
This class is responsible for handling execution of CLI commands.
If you need to add CLI commands that are not provided by Dewdrop out of the box, provide an array of command classnames in a Pimple resource called "cli-commands". We use this special Pimple resource for custom command injection because it's not possible to define a custom Run instance in Pimple altogether, like we do for custom view helpers for example. Run is a "root" class in the sense that it is responsible for finding and kicking off the bootstrap directly.
$renderer : \Dewdrop\Cli\Renderer\RendererInterface
The renderer that will be used by this class and any executed commands in order to send output to the terminal.
$dbAdapter : \Dewdrop\Db\Adapter
The DB adapter. You can retrieve this by calling connectDb().
$paths : \Dewdrop\Paths
A \Dewdrop\Paths instance to help in navigating the filesystem.
__construct(array $args = null, string $command = null, \Dewdrop\Cli\Renderer\RendererInterface $renderer = null)
Create the CLI runner, giving users the ability to inject non-default args, command name, and renderer (primarily for testing purposes).
setArgs(array $args) : \Dewdrop\Cli\Run
Override the args applied to this runner
executeCommand(string $name) : \Dewdrop\Cli\Run
Run the named command, if its arguments can be successfully parsed.
connectDb() : \Dewdrop\Db\Adapter
Pull in the wp-config.php file to allow us to connect to the database on the CLI.