"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getBoundedContextModuleFromFlag = void 0;
const getBoundedContextModuleFromFlag = (command, module) => {
    const boundedContextSection = module.split('/');
    if (boundedContextSection.length !== 2)
        command.error('Must input bounded context and module name, with format: bounded-context/module');
    return {
        boundedContextName: boundedContextSection[0],
        moduleName: boundedContextSection[1],
    };
};
exports.getBoundedContextModuleFromFlag = getBoundedContextModuleFromFlag;
