UNPKG

nest-commander-schematics

Version:

A set of schematics for generating questions and commands with the NestJS CLI.

22 lines 709 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.command = command; const common_1 = require("../common"); class CommandSchematicFactory extends common_1.CommonSchematicFactory { constructor() { super(...arguments); this.type = 'command'; } generate(options) { this.templatePath = options.question ? './files/with-questions' : './files/without-questions'; options.isDefault = options.default; return super.generate(options); } } function command(options) { const commandFactory = new CommandSchematicFactory(); return commandFactory.create(options); } //# sourceMappingURL=index.js.map