UNPKG

create-dxcli

Version:
26 lines (25 loc) 921 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const command_1 = require("@dxcli/command"); const command_base_1 = require("./command_base"); class AppCommand extends command_base_1.default { async run() { const options = this.flags.options ? this.flags.options.split(',') : []; await super.generate('app', { type: this.type, path: this.args.path, options, defaults: this.flags.defaults, force: this.flags.force }); } } AppCommand.flags = { defaults: command_1.flags.boolean({ description: 'use defaults for every setting' }), options: command_1.flags.string({ description: '(typescript|semantic-release|mocha)' }), force: command_1.flags.boolean({ description: 'overwrite existing files' }), }; AppCommand.args = [ { name: 'path', required: false } ]; exports.default = AppCommand;