create-dxcli
Version:
dxcli: create your own CLI
26 lines (25 loc) • 921 B
JavaScript
;
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;