UNPKG

hardhat-forta

Version:
17 lines 695 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.executeFortaAgentCliCommand = void 0; const forta_agent_1 = require("forta-agent"); async function executeFortaAgentCliCommand(cliCommandName, cliArgs) { try { const diContainer = (0, forta_agent_1.configureContainer)(Object.assign(Object.assign({}, cliArgs), { cliCommandName })); const command = diContainer.resolve(cliCommandName); await command(); } catch (e) { console.error(`Error while running forta agent cli command: ${e}`); process.exit(); } } exports.executeFortaAgentCliCommand = executeFortaAgentCliCommand; //# sourceMappingURL=index.js.map