UNPKG

847 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3const command_1 = require("@oclif/command");
4const base_command_1 = require("../../base-command");
5const createIntegration_1 = require("../../actions/createIntegration");
6class 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}
12IntegrationsCreate.description = 'create a new Integration';
13IntegrationsCreate.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' }) });
14exports.default = IntegrationsCreate;