hardhat-forta
Version:
Forta Agent Hardhat Plugin
17 lines • 695 B
JavaScript
;
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