michangarrito/apps/backend/node_modules/@nestjs/cli/lib/schematics/abstract.collection.js
rckrdmrd 97f407c661 [MIGRATION-V2] feat: Migrar michangarrito a estructura v2
- Prefijo v2: MCH
- TRACEABILITY-MASTER.yml creado
- Listo para integracion como submodulo

Workspace: v2.0.0 | SIMCO: v4.0.0
2026-01-10 11:28:54 -06:00

24 lines
814 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AbstractCollection = void 0;
class AbstractCollection {
constructor(collection, runner) {
this.collection = collection;
this.runner = runner;
}
async execute(name, options, extraFlags) {
let command = this.buildCommandLine(name, options);
command = extraFlags ? command.concat(` ${extraFlags}`) : command;
await this.runner.run(command);
}
buildCommandLine(name, options) {
return `${this.collection}:${name}${this.buildOptions(options)}`;
}
buildOptions(options) {
return options.reduce((line, option) => {
return line.concat(` ${option.toCommandString()}`);
}, '');
}
}
exports.AbstractCollection = AbstractCollection;