"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const core_1 = require("@oclif/core");
const backup_client_1 = require("../../../lib/backup-client");
const context_banner_1 = require("../../../lib/context-banner");
class BackupRestorePreview extends core_1.Command {
    async run() {
        const { flags } = await this.parse(BackupRestorePreview);
        (0, context_banner_1.printContextBanner)();
        const client = backup_client_1.BackupClient.fromConfig();
        const res = await client.previewRestore({
            artifactId: flags.artifact,
            sourceDestinationId: flags['source-destination'],
        });
        this.log(JSON.stringify(res, null, 2));
    }
}
BackupRestorePreview.description = 'Preview what a restore would touch (resources to be created/replaced)';
BackupRestorePreview.flags = {
    artifact: core_1.Flags.string({
        required: true,
        description: 'Backup artifact ID',
    }),
    'source-destination': core_1.Flags.string({
        required: true,
        description: 'Source destination ID (where the artifact lives)',
    }),
};
exports.default = BackupRestorePreview;
