From b19856a3750f34ca1ed0435f0b589cf614fb582b Mon Sep 17 00:00:00 2001 From: Alex Nguetcha Date: Mon, 16 Feb 2026 14:26:45 +0100 Subject: [PATCH 1/2] feat: Add type and CRUD options in generate command --- commands/generate.command.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/commands/generate.command.ts b/commands/generate.command.ts index ed697a834..392662a37 100644 --- a/commands/generate.command.ts +++ b/commands/generate.command.ts @@ -48,6 +48,8 @@ export class GenerateCommand extends AbstractCommand { '-c, --collection [collectionName]', 'Schematics collection to use.', ) + .option('--type ', 'Transport layer type (rest, graphql, microservice)') + .option('--crud', 'Generate CRUD entry points') .action( async ( schematic: string, @@ -93,6 +95,16 @@ export class GenerateCommand extends AbstractCommand { value: command.skipImport, }); + options.push({ + name: 'type', + value: command.type, + }); + + options.push({ + name: 'crud', + value: !!command.crud, + }); + const inputs: Input[] = []; inputs.push({ name: 'schematic', value: schematic }); inputs.push({ name: 'name', value: name }); From 4c0e2cabebe71bd783a3623551b0e7300b5ac275 Mon Sep 17 00:00:00 2001 From: Alex Nguetcha Date: Mon, 9 Mar 2026 22:54:08 +0100 Subject: [PATCH 2/2] fix: Update CRUD option to accept a value for generating entry points --- commands/generate.command.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/commands/generate.command.ts b/commands/generate.command.ts index 392662a37..103270bda 100644 --- a/commands/generate.command.ts +++ b/commands/generate.command.ts @@ -49,7 +49,7 @@ export class GenerateCommand extends AbstractCommand { 'Schematics collection to use.', ) .option('--type ', 'Transport layer type (rest, graphql, microservice)') - .option('--crud', 'Generate CRUD entry points') + .option('--crud [value]', 'Generate CRUD entry points') .action( async ( schematic: string, @@ -100,10 +100,12 @@ export class GenerateCommand extends AbstractCommand { value: command.type, }); - options.push({ - name: 'crud', - value: !!command.crud, - }); + if (command.crud !== undefined) { + options.push({ + name: 'crud', + value: command.crud === true || command.crud === 'true', + }); + } const inputs: Input[] = []; inputs.push({ name: 'schematic', value: schematic });