mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-22 07:46:16 -04:00
Make help function use OperationConfig.json file
Tidy up Gruntfile execs
This commit is contained in:
parent
f101eefc56
commit
2480dca473
8 changed files with 1396 additions and 165 deletions
|
@ -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
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue