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

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

return array(
	array(
		'name'        => 'wp blaminhor image-sizes list',
		'description' => __( 'List every registered image size with its status.', 'blaminhor-essentials' ),
		'example'     => 'wp blaminhor image-sizes list',
	),
	array(
		'name'        => 'wp blaminhor image-sizes disable',
		'description' => __( 'Disable a registered image size (no new thumbnails generated for it).', 'blaminhor-essentials' ),
		'example'     => 'wp blaminhor image-sizes disable medium_large',
	),
	array(
		'name'        => 'wp blaminhor image-sizes enable',
		'description' => __( 'Re-enable a previously disabled image size.', 'blaminhor-essentials' ),
		'example'     => 'wp blaminhor image-sizes enable medium_large',
	),
	array(
		'name'        => 'wp blaminhor image-sizes add-custom',
		'description' => __( 'Register a new custom image size.', 'blaminhor-essentials' ),
		'example'     => 'wp blaminhor image-sizes add-custom --name=hero --width=1920 --height=600',
	),
	array(
		'name'        => 'wp blaminhor image-sizes remove-custom',
		'description' => __( 'Remove a custom image size declared by this module.', 'blaminhor-essentials' ),
		'example'     => 'wp blaminhor image-sizes remove-custom hero --yes',
	),
	array(
		'name'        => 'wp blaminhor image-sizes bulk-add',
		'description' => __( 'Register several custom image sizes from a CSV file in one go.', 'blaminhor-essentials' ),
		'example'     => 'wp blaminhor image-sizes bulk-add --file=/srv/sizes.csv',
	),
	array(
		'name'        => 'wp blaminhor image-sizes regenerate-thumbnails',
		'description' => __( 'Regenerate ONLY the thumbnails currently missing from each attachment.', 'blaminhor-essentials' ),
		'example'     => 'wp blaminhor image-sizes regenerate-thumbnails --dry-run',
	),
	array(
		'name'        => 'wp blaminhor image-sizes export',
		'description' => __( 'Dump Image Sizes settings as a JSON envelope on STDOUT.', 'blaminhor-essentials' ),
		'example'     => 'wp blaminhor image-sizes export > image-sizes.json',
	),
);
