<?php 
namespace Lcmigrator\LcMigrator\CliRegister;
use WP_CLI;
class Register {
    public static function register() {
        // Register the WP CLI command
        WP_CLI::add_command( 'lcm url', 'Lcm_URL_CLI_Command', array( 'shortdesc' => __( 'LCM Command for URL', LC_MIGRATOR_PLUGIN_NAME ) ) );
        
        // Register the backup CLI command
        WP_CLI::add_command( 'lcm backup', 'Lcmigrator\LcMigrator\Cli\BackupCli', array( 
            'shortdesc' => __( 'Create a complete WordPress site backup and upload to GCS', LC_MIGRATOR_PLUGIN_NAME ) 
        ) );

        // Register the restore CLI command
        WP_CLI::add_command( 'lcm restore', 'Lcmigrator\LcMigrator\Cli\RestoreCli', array( 
            'shortdesc' => __( 'Restore a WordPress site from a .lc-migrator backup file', LC_MIGRATOR_PLUGIN_NAME ) 
        ) );
    }
}