add CLI details functionality

This commit is contained in:
Charlotte Croce 2025-04-19 12:55:56 -04:00
parent 657a33a189
commit fd394fff36
3 changed files with 9 additions and 18 deletions

View file

@ -8,7 +8,6 @@ const logger = require('../../utils/logger');
const { handleError } = require('../../utils/error_handler');
const { getSigmaRuleDetails, getSigmaRuleYaml } = require('../../services/sigma/sigma_details_service');
const { getSigmaRuleDetailsBlocks } = require('../../blocks/sigma/sigma_details_block');
const { formatSigmaDetails } = require('../../utils/cli_formatters');
const { getFileName } = require('../../utils/file_utils');
const FILE_NAME = getFileName(__filename);
@ -77,8 +76,8 @@ const handleCommand = async (command, respond) => {
// Return the response with both blocks for Slack and responseData for CLI
await respond({
blocks: blocks, // For Slack
responseData: sigmaRuleDetailsResult.explanation, // For CLI
blocks: blocks, // For Slack interface
responseData: sigmaRuleDetailsResult.explanation, // For CLI interface
response_type: 'in_channel'
});
} catch (error) {