UNPKG

921 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3const command_1 = require("@dxcli/command");
4const command_base_1 = require("./command_base");
5class AppCommand extends command_base_1.default {
6 async run() {
7 const options = this.flags.options ? this.flags.options.split(',') : [];
8 await super.generate('app', {
9 type: this.type,
10 path: this.args.path,
11 options,
12 defaults: this.flags.defaults,
13 force: this.flags.force
14 });
15 }
16}
17AppCommand.flags = {
18 defaults: command_1.flags.boolean({ description: 'use defaults for every setting' }),
19 options: command_1.flags.string({ description: '(typescript|semantic-release|mocha)' }),
20 force: command_1.flags.boolean({ description: 'overwrite existing files' }),
21};
22AppCommand.args = [
23 { name: 'path', required: false }
24];
25exports.default = AppCommand;