"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const mablApiClientFactory_1 = require("@mablhq-internal/runtime/api/mablApiClientFactory");
const constants_1 = require("@mablhq-internal/runtime/core/constants");
const cliUtil_1 = require("@mablhq-internal/runtime/core/cliUtil");
const describe_1 = require("../../commandUtil/describe");
exports.command = `describe <${constants_1.CommandArgId}>`;
exports.describe = 'Describe a specific DataTable';
exports.builder = (0, describe_1.getDescribeBuilderOptions)();
exports.handler = (0, cliUtil_1.failWrapper)(describeDataTable);
async function describeDataTable(parsed) {
    const output = parsed.output;
    const dataTableId = parsed.id;
    const apiClient = await mablApiClientFactory_1.MablApiClientFactory.createApiClient();
    const dataTable = await apiClient.getDataTable(dataTableId);
    (0, describe_1.outputEntity)(dataTable, output);
}
