UNPKG

@veecode-platform/safira-cli

Version:

Generate a microservice project from your spec.

34 lines (33 loc) 1.32 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const color_1 = tslib_1.__importDefault(require("@oclif/color")); const core_1 = require("@oclif/core"); const install_1 = tslib_1.__importDefault(require("../../kong/install")); const install_2 = tslib_1.__importDefault(require("../../mockserver/install")); const install_3 = tslib_1.__importDefault(require("../install")); const install_4 = tslib_1.__importDefault(require("../../keycloak/install")); class DevportalStackInstall extends core_1.Command { async run() { console.log("Installing Devportal Stack..."); try { await install_1.default.run([]); await install_4.default.run([]); await install_2.default.run([]); await install_3.default.run([]); } catch (error) { this.log(color_1.default.red(error.message)); } } } exports.default = DevportalStackInstall; DevportalStackInstall.description = "Install devportal stack"; DevportalStackInstall.examples = [ "<%= config.bin %> <%= command.id %>", ]; DevportalStackInstall.flags = { name: core_1.Flags.string({ char: "n", description: "name to print" }), force: core_1.Flags.boolean({ char: "f" }), }; DevportalStackInstall.args = [];