mirror of
https://github.com/gchq/CyberChef
synced 2025-12-23 03:33:24 +00:00
Make help function use OperationConfig.json file
Tidy up Gruntfile execs
This commit is contained in:
@@ -28,7 +28,7 @@ if (!fs.existsSync(dir)) {
|
||||
}
|
||||
|
||||
let code = `/**
|
||||
* THIS FILE IS AUTOMATICALLY GENERATED BY src/core/config/scripts/generateOpsIndex.mjs
|
||||
* THIS FILE IS AUTOMATICALLY GENERATED BY src/node/config/scripts/generateNodeIndex.mjs
|
||||
*
|
||||
* @author d98762625 [d98762625@gmail.com]
|
||||
* @copyright Crown Copyright ${new Date().getUTCFullYear()}
|
||||
@@ -79,14 +79,7 @@ code += ` };
|
||||
}
|
||||
|
||||
const chef = generateChef();
|
||||
chef.help = help([\n`;
|
||||
|
||||
includedOperations.forEach((op) => {
|
||||
code += ` core_${op},\n`;
|
||||
});
|
||||
|
||||
code +=`]);
|
||||
|
||||
chef.help = help;
|
||||
`;
|
||||
|
||||
includedOperations.forEach((op) => {
|
||||
@@ -108,6 +101,6 @@ code += "};\n";
|
||||
|
||||
|
||||
fs.writeFileSync(
|
||||
path.join(dir, "/index.mjs"),
|
||||
path.join(dir, "./index.mjs"),
|
||||
code
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user