ÿØÿà JFIF H H ÿÛ C GIF89;
| System: Linux srv913213 5.15.0-190-generic #200-Ubuntu SMP Fri Aug 7 15:06:04 UTC 2026 x86_64 Current Path : /var/www/talentgenesis_admin_backend/node_modules/@nestjs/cli/lib/schematics/ |
| Current File : /var/www/talentgenesis_admin_backend/node_modules/@nestjs/cli/lib/schematics/abstract.collection.js |
"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;