"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const tag_1 = __importDefault(require("./tag"));
function exec(type) {
    return __awaiter(this, void 0, void 0, function* () {
        const paramsHandler = {
            tag: tag_1.default, // 自动打git标签
        };
        const fn = paramsHandler[type];
        yield fn();
    });
}
// 发布命令的核心逻辑
function execGit(CommandOptions) {
    return __awaiter(this, void 0, void 0, function* () {
        if (CommandOptions.tag) {
            yield exec('tag');
        }
    });
}
exports.default = execGit;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9jb21tYW5kcy9naXQvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7QUFBQSxnREFBNkI7QUFZN0IsU0FBZSxJQUFJLENBQUMsSUFBVzs7UUFDN0IsTUFBTSxhQUFhLEdBQW1CO1lBQ3BDLEdBQUcsRUFBRSxhQUFTLEVBQUUsV0FBVztTQUM1QixDQUFBO1FBQ0QsTUFBTSxFQUFFLEdBQUcsYUFBYSxDQUFDLElBQUksQ0FBQyxDQUFBO1FBQzlCLE1BQU0sRUFBRSxFQUFFLENBQUE7SUFDWixDQUFDO0NBQUE7QUFFRCxZQUFZO0FBQ1osU0FBZSxPQUFPLENBQUMsY0FBOEI7O1FBQ25ELElBQUcsY0FBYyxDQUFDLEdBQUcsRUFBRTtZQUNyQixNQUFNLElBQUksQ0FBQyxLQUFLLENBQUMsQ0FBQTtTQUNsQjtJQUNILENBQUM7Q0FBQTtBQUVELGtCQUFlLE9BQU8sQ0FBQSJ9