1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | const command_1 = require("@oclif/command");
|
4 | const base_command_1 = require("../../base-command");
|
5 | const createIntegration_1 = require("../../actions/createIntegration");
|
6 | class IntegrationsCreate extends base_command_1.default {
|
7 | async run() {
|
8 | const { flags: { name, description, skipLink } } = this.parse(IntegrationsCreate);
|
9 | await createIntegration_1.default(this, { name, description, link: Boolean(!skipLink) });
|
10 | }
|
11 | }
|
12 | IntegrationsCreate.description = 'create a new Integration';
|
13 | IntegrationsCreate.flags = Object.assign({}, base_command_1.default.flags, { description: command_1.flags.string({ char: 'd' }), name: command_1.flags.string({ char: 'n' }), skipLink: command_1.flags.boolean({ char: 'l' }) });
|
14 | exports.default = IntegrationsCreate;
|