1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | const command_1 = require("@dxcli/command");
|
4 | const command_base_1 = require("./command_base");
|
5 | class 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 | }
|
17 | AppCommand.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 | };
|
22 | AppCommand.args = [
|
23 | { name: 'path', required: false }
|
24 | ];
|
25 | exports.default = AppCommand;
|