"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PipelineHandler = void 0;
/* eslint-disable unicorn/no-static-only-class */
const types_1 = require("../types");
const template_generator_1 = require("../utils/template-generator");
const path = require("node:path");
class PipelineHandler {
    static async generatePipeline(generatePipelineCommandState) {
        // create pipeline files
        await template_generator_1.TemplateGenerator.generateStaticContents(generatePipelineCommandState.command, types_1.TemplateElement.PIPELINE, '.', '.', {
            templateElementPath: path.join(generatePipelineCommandState.scope === 'front' ? 'front' : 'back', generatePipelineCommandState.from.toKebabCase(), generatePipelineCommandState.to.toKebabCase(), generatePipelineCommandState.service.toKebabCase()),
        });
    }
}
exports.PipelineHandler = PipelineHandler;
