프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$bootPath | string | ||
$config | array | ||
$executor | tad\WPBrowser\Environment\Executor | ||
$options | array | ||
$prettyName | string | ||
$requiredFields | { | ||
$wpCliRoot | string |
메소드 | 설명 | |
---|---|---|
__construct ( Codeception\Lib\ModuleContainer $moduleContainer, null | array $config, tad\WPBrowser\Environment\Executor $executor = null ) | WPCLI constructor. | |
cli ( string $userCommand = 'core version', &$output = [] ) : integer | Executes a wp-cli command. | |
cliToArray ( string $userCommand = 'post list --format=ids', callable $splitCallback = null ) : array | Returns the output of a wp-cli command as an array. |
메소드 | 설명 | |
---|---|---|
buildCommand ( $userCommand ) : string | ||
debugSection ( string $title, string $message ) | ||
evaluateStatus ( &$output, $status ) | ||
initPaths ( ) | ||
initWpCliPaths ( ) | Initializes the wp-cli root location. | |
mergeCommandOptions ( string $userCommand ) : string |
public __construct ( Codeception\Lib\ModuleContainer $moduleContainer, null | array $config, tad\WPBrowser\Environment\Executor $executor = null ) | ||
$moduleContainer | Codeception\Lib\ModuleContainer | |
$config | null | array | |
$executor | tad\WPBrowser\Environment\Executor |
public cli ( string $userCommand = 'core version', &$output = [] ) : integer | ||
$userCommand | string | The string of command and parameters as it would be passed to wp-cli e.g. a terminal call like `wp core version` becomes `core version` omitting the call to wp-cli script. |
리턴 | integer | wp-cli exit value for the command |
protected debugSection ( string $title, string $message ) | ||
$title | string | |
$message | string |
protected initWpCliPaths ( ) |
protected mergeCommandOptions ( string $userCommand ) : string | ||
$userCommand | string | |
리턴 | string |
protected Executor,tad\WPBrowser\Environment $executor | ||
리턴 | tad\WPBrowser\Environment\Executor |