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

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

return array(
	array(
		'name'        => 'wp blaminhor duplicator get',
		'description' => __( 'Show the current Duplicator settings.', 'blaminhor-essentials' ),
		'example'     => 'wp blaminhor duplicator get',
	),
	array(
		'name'        => 'wp blaminhor duplicator set',
		'description' => __( 'Update Duplicator settings (which post types and taxonomies are duplicable, copy flags).', 'blaminhor-essentials' ),
		'example'     => 'wp blaminhor duplicator set --copy-title=true',
	),
	array(
		'name'        => 'wp blaminhor duplicator duplicate-post',
		'description' => __( 'Duplicate a single post / page / CPT entry.', 'blaminhor-essentials' ),
		'example'     => 'wp blaminhor duplicator duplicate-post 42',
	),
	array(
		'name'        => 'wp blaminhor duplicator duplicate-term',
		'description' => __( 'Duplicate a single taxonomy term.', 'blaminhor-essentials' ),
		'example'     => 'wp blaminhor duplicator duplicate-term 7 --taxonomy=category',
	),
	array(
		'name'        => 'wp blaminhor duplicator bulk-duplicate',
		'description' => __( 'Duplicate several posts in one shot from a comma-separated ID list.', 'blaminhor-essentials' ),
		'example'     => 'wp blaminhor duplicator bulk-duplicate --ids=12,34,56',
	),
	array(
		'name'        => 'wp blaminhor duplicator export',
		'description' => __( 'Dump Duplicator settings as a JSON envelope on STDOUT.', 'blaminhor-essentials' ),
		'example'     => 'wp blaminhor duplicator export > duplicator.json',
	),
);
