UNPKG

liveperson-functions-cli

Version:
39 lines 1.28 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const core_1 = require("@oclif/core"); const get_controller_1 = require("../controller/get.controller"); const utils_1 = require("../shared/utils"); class Get extends core_1.Command { constructor() { super(...arguments); this.getController = new get_controller_1.GetController(); } /** * Runs the get command and parses the passed domains * @returns {Promise<void>} - get command * @memberof Get */ async run() { try { const domains = (0, utils_1.parseInput)(Get.flags, this.argv); await this.getController.get({ domains }); } catch (error) { this.exit(1); } } } exports.default = Get; Get.description = 'Get information about different domains (deployments, functions, account and events)'; Get.flags = { help: core_1.Flags.help({ char: 'h' }), }; Get.strict = false; Get.args = [{ name: '...functions' }]; Get.examples = [ '> <%= config.bin %> get account', '> <%= config.bin %> get functions deployments', '> <%= config.bin %> get functions deployments account', '> <%= config.bin %> get functions deployments account events', ]; //# sourceMappingURL=get.js.map