Méthode |
Description |
|
cliQuestion ( string $question, array $values, array $assoc_args = [] ) : string |
Asks user a question, offers an array of values and returns what he/she entered. The first value
in the $values array is the default one, used if the user just ENTERs the question or types
in some random value. The $assoc_args array may be given as the third parameter, in which case
it behaves like in WP_CLI::confirm() and will return 'y' is such value is in $values,
or the default value. |
|
exec ( string $command, string | null $cwd = null ) : Process |
Executes a command, optionally in a specified working directory. |
|
fixTypeOfValue ( string $value ) : boolean | integer | float | string |
WP-CLI args are always strings. This method restores the original type. |
|
runWpCliCommand ( $command, $subcommand, $args = [], $cwd = null ) |
|
|
warning ( $message ) |
|
|