rename explain-sigma-rules to sigma-rule-details
This commit is contained in:
parent
519c87fb04
commit
657a33a189
7 changed files with 96 additions and 95 deletions
|
@ -17,7 +17,7 @@ const FILE_NAME = getFileName(__filename);
|
|||
* @param {string} ruleId - The ID of the rule to explain
|
||||
* @returns {Promise<Object>} Result object with success flag and explanation or error message
|
||||
*/
|
||||
async function explainSigmaRule(ruleId) {
|
||||
async function getSigmaRuleDetails(ruleId) {
|
||||
if (!ruleId) {
|
||||
logger.warn(`${FILE_NAME}: Cannot explain rule: Missing rule ID`);
|
||||
return {
|
||||
|
@ -145,6 +145,6 @@ async function getSigmaRuleYaml(ruleId) {
|
|||
}
|
||||
|
||||
module.exports = {
|
||||
explainSigmaRule,
|
||||
getSigmaRuleDetails,
|
||||
getSigmaRuleYaml
|
||||
};
|
|
@ -48,7 +48,9 @@ async function getSigmaStats() {
|
|||
return {
|
||||
success: true,
|
||||
stats: formattedStats,
|
||||
// Include raw response data for direct use by CLI
|
||||
// Include raw response data for direct use by CLI.
|
||||
// We have one universal function in the CLI to receive responses,
|
||||
// and the CLI will then format each result differently
|
||||
responseData: formattedStats
|
||||
};
|
||||
} catch (error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue