Marketplace móvil para negocios locales mexicanos. Estructura inicial: - apps/backend (NestJS API) - apps/frontend (React Web) - apps/mobile (Expo/React Native) - apps/mcp-server (Claude MCP Server) - apps/whatsapp-service (WhatsApp Business API) - database/ (PostgreSQL DDL) - docs/ (Documentación) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
24 lines
814 B
JavaScript
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;
|