"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const BaseCommand_1 = require("../../BaseCommand");
const core_1 = require("@oclif/core");
class LabelDelete extends BaseCommand_1.BaseCommand {
    async run() {
        const labelId = await this.cache.getLabelIdByBoardAndColor(this.lookups.board, this.flags.color, this.flags.text);
        await this.client.labels.deleteLabel({ id: labelId });
        await this.cache.sync();
    }
}
LabelDelete.description = "Delete a label";
LabelDelete.flags = {
    board: core_1.Flags.string({ required: true }),
    color: core_1.Flags.option({
        required: true,
        options: [
            "green",
            "yellow",
            "orange",
            "red",
            "purple",
            "blue",
            "sky",
            "lime",
            "pink",
            "black",
        ],
    })(),
    text: core_1.Flags.string({
        description: "Label text to match when multiple labels share the same color",
    }),
};
exports.default = LabelDelete;
