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

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

return array(
	array(
		'name'        => 'wp blaminhor smtp get',
		'description' => __( 'Show the current SMTP settings (with relay passwords masked).', 'blaminhor-essentials' ),
		'example'     => 'wp blaminhor smtp get',
	),
	array(
		'name'        => 'wp blaminhor smtp set',
		'description' => __( 'Update SMTP general settings.', 'blaminhor-essentials' ),
		'example'     => 'wp blaminhor smtp set --from-email=hello@example.com',
	),
	array(
		'name'        => 'wp blaminhor smtp test',
		'description' => __( 'Send a test email through the configured SMTP pipeline.', 'blaminhor-essentials' ),
		'example'     => 'wp blaminhor smtp test',
	),
	array(
		'name'        => 'wp blaminhor smtp add-relay',
		'description' => __( 'Add a new SMTP relay.', 'blaminhor-essentials' ),
		'example'     => 'wp blaminhor smtp add-relay --name=Gmail --host=smtp.gmail.com',
	),
	array(
		'name'        => 'wp blaminhor smtp list-relays',
		'description' => __( 'List the configured SMTP relays.', 'blaminhor-essentials' ),
		'example'     => 'wp blaminhor smtp list-relays',
	),
	array(
		'name'        => 'wp blaminhor smtp delete-relay',
		'description' => __( 'Delete an SMTP relay by index.', 'blaminhor-essentials' ),
		'example'     => 'wp blaminhor smtp delete-relay 0 --yes',
	),
);
