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

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

return array(
	array(
		'name'        => 'wp blaminhor maintenance get',
		'description' => __( 'Show the current Maintenance settings.', 'blaminhor-essentials' ),
		'example'     => 'wp blaminhor maintenance get',
	),
	array(
		'name'        => 'wp blaminhor maintenance status',
		'description' => __( 'Print whether maintenance mode is currently enabled (porcelain output).', 'blaminhor-essentials' ),
		'example'     => 'wp blaminhor maintenance status',
	),
	array(
		'name'        => 'wp blaminhor maintenance enable',
		'description' => __( 'Enable maintenance / coming soon mode (and optionally update fields).', 'blaminhor-essentials' ),
		'example'     => 'wp blaminhor maintenance enable --headline="Back soon"',
	),
	array(
		'name'        => 'wp blaminhor maintenance disable',
		'description' => __( 'Disable maintenance / coming soon mode.', 'blaminhor-essentials' ),
		'example'     => 'wp blaminhor maintenance disable --yes',
	),
	array(
		'name'        => 'wp blaminhor maintenance set',
		'description' => __( 'Update Maintenance settings without toggling on/off.', 'blaminhor-essentials' ),
		'example'     => 'wp blaminhor maintenance set --message="Back in 1h"',
	),
	array(
		'name'        => 'wp blaminhor maintenance preview',
		'description' => __( 'Render the maintenance / coming-soon page HTML to STDOUT (headless preview).', 'blaminhor-essentials' ),
		'example'     => 'wp blaminhor maintenance preview > preview.html',
	),
	array(
		'name'        => 'wp blaminhor maintenance export',
		'description' => __( 'Dump Maintenance settings as a JSON envelope on STDOUT.', 'blaminhor-essentials' ),
		'example'     => 'wp blaminhor maintenance export > maintenance.json',
	),
);
