feat: Update main entry point and improve build script for cleaner architecture

This commit is contained in:
didavila
2026-03-24 13:00:32 +01:00
parent dd32befcdc
commit dc678a3545
2 changed files with 10 additions and 5 deletions

View File

@@ -2,6 +2,7 @@
import fs from 'fs-extra';
import mustache from 'mustache';
import path from 'path';
import { program } from 'commander';
import { log, logSuccess, logInfo, logWarning, logError, colors } from './src/utils/logger';
@@ -26,7 +27,11 @@ program
.version('1.0.0')
.option('-i, --input <file>', 'Archivo OpenAPI/Swagger (yaml o json)', 'swagger.yaml')
.option('-o, --output <dir>', 'Directorio de salida', './src/app')
.option('-t, --templates <dir>', 'Directorio de templates personalizados', './templates')
.option(
'-t, --templates <dir>',
'Directorio de templates personalizados',
path.join(__dirname, 'templates')
)
.option('--skip-install', 'No instalar dependencias')
.option('--dry-run', 'Simular sin generar archivos')
.parse(process.argv);