InterfaceCli
interface InterfaceCli
Interface InterfaceWriter
For use as our WP_CLI Interface
Methods
log(string $text)
Logs a message
warning(string $text)
Logs a warning message
success(string $text)
Logs a success message
error(string $text, bool $exit = true)
Logs an error
string
getResponse($text)
Get a user response
outputInFormat(string $format, array $data, array $keys)
Output the data in a specific format
Details
at line 55
log(string $text)
Logs a message
at line 64
warning(string $text)
Logs a warning message
at line 73
success(string $text)
Logs a success message
at line 83
error(string $text, bool $exit = true)
Logs an error
at line 94
string
getResponse($text)
Get a user response
at line 105
outputInFormat(string $format, array $data, array $keys)
Output the data in a specific format