<?php
/**
 * WP-CLI command reference for the Backup module.
 *
 * Surfaced by Blaminhor → Advanced → WP-CLI. Kept separate from the class
 * file so it can be loaded outside of a WP_CLI context (admin pages run
 * under PHP-FPM, not WP-CLI).
 *
 * @package BlaminhorEssentials
 */

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

return array(
	array(
		'name'        => 'wp blaminhor backup list',
		'description' => __( 'List local backups grouped by prefix.', 'blaminhor-essentials' ),
		'example'     => 'wp blaminhor backup list',
	),
	array(
		'name'        => 'wp blaminhor backup info',
		'description' => __( 'Print summary info about the backup directory.', 'blaminhor-essentials' ),
		'example'     => 'wp blaminhor backup info',
	),
	array(
		'name'        => 'wp blaminhor backup delete',
		'description' => __( 'Delete a backup (every ZIP + log file sharing its prefix).', 'blaminhor-essentials' ),
		'example'     => 'wp blaminhor backup delete mysite-2026-05-17-093015 --yes',
	),
);
