return $dump;
}
+ /**
+ * Print WP-CLI version.
+ */
function version() {
WP_CLI::line( 'WP-CLI ' . WP_CLI_VERSION );
}
+ /**
+ * Print various data about the CLI environment.
+ */
function info() {
$php_bin = defined( 'PHP_BINARY' ) ? PHP_BINARY : getenv( 'WP_CLI_PHP_USED' );
}
/**
+ * Dump the list of global parameters, as JSON.
+ *
* @subcommand param-dump
*/
function param_dump() {
}
/**
+ * Dump the list of installed commands, as JSON.
+ *
* @subcommand cmd-dump
*/
function cmd_dump() {
echo json_encode( self::command_to_array( WP_CLI::get_root_command() ) );
}
+ /**
+ * Generate tab completion strings.
+ */
function completions() {
foreach ( WP_CLI::get_root_command()->get_subcommands() as $name => $command ) {
$subcommands = $command->get_subcommands();