PHP Class Papi_CLI_Command, papi

Inheritance: extends WP_CLI_Command
Mostrar archivo Open project: wp-papi/papi

Protected Methods

Method Description
get_default_format_fields ( ) : null | string | array Get default fields for formatter.
get_format_args ( array $assoc_args ) : array Get format args that will be passed into CLI Formatter.
get_formatter ( array $assoc_args ) : Formatter Get formatter object based on supplied arguments.

Method Details

get_default_format_fields() protected method

Class that extends Papi_CLI_Command should override this method.
protected get_default_format_fields ( ) : null | string | array
return null | string | array

get_format_args() protected method

Get format args that will be passed into CLI Formatter.
protected get_format_args ( array $assoc_args ) : array
$assoc_args array Associative args from CLI
return array Formatter args

get_formatter() protected method

Get formatter object based on supplied arguments.
protected get_formatter ( array $assoc_args ) : Formatter
$assoc_args array Associative args from CLI to determine formattin
return WP_CLI\Formatter