<?php

namespace SerpIQ\Cli;

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

/**
 * WP-CLI commands. No browser or REST nonce; authorization is the host/OS shell invoking `wp`.
 * Use `wp --user=<id>` when a WordPress capability context is required for side effects.
 */
final class Cli {
	public static function register(): void {
		if ( ! defined( 'WP_CLI' ) || ! WP_CLI ) {
			return;
		}
		if ( ! class_exists( '\WP_CLI' ) ) {
			return;
		}

		\WP_CLI::add_command( 'serpiq backfill', Backfill_Command::class );
	}
}

