Inheritance: extends WP_CLI_Command
Example #1
0
 /**
  * Get a list of themes.
  *
  * ## OPTIONS
  *
  * [--<field>=<value>]
  * : Filter results based on the value of a field.
  *
  * [--field=<field>]
  * : Prints the value of a single field for each theme.
  *
  * [--fields=<fields>]
  * : Limit the output to specific object fields. Defaults to name,status,update,version.
  *
  * [--format=<format>]
  * : Accepted values: table, json. Default: table
  *
  * ## EXAMPLES
  *
  *     wp theme list --status=inactive --format=csv
  *
  * @subcommand list
  */
 public function list_($_, $assoc_args)
 {
     parent::_list($_, $assoc_args);
 }
Example #2
0
File: plugin.php Project: nb/wp-cli
 /**
  * Get a list of plugins.
  *
  * ## OPTIONS
  *
  * [--<field>=<value>]
  * : Filter results based on the value of a field.
  *
  * [--field=<field>]
  * : Prints the value of a single field for each plugin.
  *
  * [--fields=<fields>]
  * : Limit the output to specific object fields. Defaults to name,status,update,version.
  *
  * [--format=<format>]
  * : Accepted values: table, csv, json, count. Default: table
  *
  * ## EXAMPLES
  *
  *     wp plugin list --status=active --format=json
  *
  * @subcommand list
  */
 function _list($_, $assoc_args)
 {
     parent::_list($_, $assoc_args);
 }