"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const BaseCommand_1 = require("../../BaseCommand");
const core_1 = require("@oclif/core");
class CardChecklist extends BaseCommand_1.BaseCommand {
    async run() {
        const checklist = await this.client.cards.createCardChecklist({
            id: this.lookups.card,
            name: this.flags.name,
        });
        this.output(checklist);
    }
    toData(data) {
        return {
            id: data.id,
            name: data.name,
        };
    }
}
CardChecklist.description = "Add a checklist to a card";
CardChecklist.flags = {
    board: core_1.Flags.string({ required: true }),
    list: core_1.Flags.string({ required: true }),
    card: core_1.Flags.string({ required: true }),
    name: core_1.Flags.string({ char: "n", required: true }),
};
exports.default = CardChecklist;
