refactor sigma actions handler into multiple files
This commit is contained in:
parent
bfabd6de2a
commit
31d6296c6e
10 changed files with 853 additions and 769 deletions
|
@ -7,10 +7,8 @@
|
|||
const logger = require('../../utils/logger');
|
||||
const { handleError } = require('../../utils/error_handler');
|
||||
const { explainSigmaRule } = require('../../services/sigma/sigma_details_service');
|
||||
const { processRuleDetails } = require('./sigma_action_handlers');
|
||||
|
||||
const { processRuleDetails } = require('./actions/sigma_action_core');
|
||||
const FILE_NAME = 'sigma_details_handler.js';
|
||||
|
||||
/**
|
||||
* Handle the sigma-details command for Sigma rules
|
||||
*
|
||||
|
@ -50,7 +48,6 @@ const handleCommand = async (command, respond) => {
|
|||
});
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
handleCommand
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue