"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const BaseCommand_1 = require("../../BaseCommand");
const core_1 = require("@oclif/core");
class CardUnlabel extends BaseCommand_1.BaseCommand {
    async run() {
        const labelId = await this.cache.getLabelIdByName(this.flags.label);
        await this.client.cards.deleteCardLabel({
            id: this.lookups.card,
            idLabel: labelId,
        });
    }
}
CardUnlabel.description = "Remove a label from a card";
CardUnlabel.flags = {
    board: core_1.Flags.string({ required: true }),
    list: core_1.Flags.string({ required: true }),
    card: core_1.Flags.string({ required: true }),
    label: core_1.Flags.string({ required: true }),
};
exports.default = CardUnlabel;
