UNPKG

liveperson-functions-cli

Version:
34 lines 1.13 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const core_1 = require("@oclif/core"); const debug_controller_1 = require("../controller/debug.controller"); const utils_1 = require("../shared/utils"); class Debug extends core_1.Command { constructor() { super(...arguments); this.debugController = new debug_controller_1.DebugController(); } /** * Runs the debug command and parses the passed functions * @returns {Promise<void>} - debug command * @memberof Debug */ async run() { try { const lambdaFunctions = (0, utils_1.parseInput)(Debug.flags, this.argv); await this.debugController.debug({ lambdaFunctions }); } catch (error) { this.exit(1); } } } exports.default = Debug; Debug.description = 'Starts a debug port on 1337 for the provided function'; Debug.flags = { help: core_1.Flags.help({ char: 'h' }), }; Debug.strict = false; Debug.args = [{ name: '...functions' }]; Debug.examples = ['> <%= config.bin %> debug exampleFunction']; //# sourceMappingURL=debug.js.map