UNPKG

@zambelz/zhc

Version:
35 lines 1.13 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const cmd_1 = require("../../utils/cmd"); const restApiCall_1 = __importDefault(require("./rest/restApiCall")); const restApiManagement_1 = require("./rest/restApiManagement"); exports.default = (0, cmd_1.createCommand)({ command: "api", description: "API management", options: { "p:profile": "Select Profile", "e:env": "Select Environment", "c:call": "Perform API call", "a:args": "Arguments for API call", "E:edit": "Edit API call", "l:list": "List APIs", "v:verbose": "Verbose output" } }, async (options) => { if (options.call) { (0, restApiCall_1.default)(options); return; } if (options.list) { (0, restApiManagement_1.getRestApiList)(options); return; } if (options.edit) { console.log("TODO: Editing API call..."); return; } }); //# sourceMappingURL=index.js.map