<?php
/**
 * WP-CLI command reference for the DB Optimizer module.
 *
 * @package BlaminhorEssentials
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

return array(
	array(
		'name'        => 'wp blaminhor db-optimizer get',
		'description' => __( 'Show the current DB Optimizer settings.', 'blaminhor-essentials' ),
		'example'     => 'wp blaminhor db-optimizer get',
	),
	array(
		'name'        => 'wp blaminhor db-optimizer set',
		'description' => __( 'Update DB Optimizer settings (which tasks the auto-cleanup runs, schedule).', 'blaminhor-essentials' ),
		'example'     => 'wp blaminhor db-optimizer set --auto-cleanup=true --schedule=daily',
	),
	array(
		'name'        => 'wp blaminhor db-optimizer scan',
		'description' => __( 'Scan the database and print what could be cleaned (read-only).', 'blaminhor-essentials' ),
		'example'     => 'wp blaminhor db-optimizer scan',
	),
	array(
		'name'        => 'wp blaminhor db-optimizer clean',
		'description' => __( 'Run one or more cleanup tasks.', 'blaminhor-essentials' ),
		'example'     => 'wp blaminhor db-optimizer clean --tasks=revisions,spam_comments --dry-run',
	),
	array(
		'name'        => 'wp blaminhor db-optimizer optimize-tables',
		'description' => __( 'Run OPTIMIZE TABLE on every WordPress table.', 'blaminhor-essentials' ),
		'example'     => 'wp blaminhor db-optimizer optimize-tables --yes',
	),
);
