mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-21 23:36:16 -04:00
export help function on chef object
This commit is contained in:
parent
27ee7f8592
commit
e04f66f599
3 changed files with 77 additions and 45 deletions
|
@ -39,7 +39,7 @@ let code = `/**
|
|||
|
||||
|
||||
import "babel-polyfill";
|
||||
import { wrap } from "./apiUtils";
|
||||
import { wrap, help } from "./apiUtils";
|
||||
import {
|
||||
`;
|
||||
|
||||
|
@ -79,6 +79,14 @@ code += ` };
|
|||
}
|
||||
|
||||
const chef = generateChef();
|
||||
chef.help = help([\n`;
|
||||
|
||||
includedOperations.forEach((op) => {
|
||||
code += ` core_${op},\n`;
|
||||
});
|
||||
|
||||
code +=`]);
|
||||
|
||||
`;
|
||||
|
||||
includedOperations.forEach((op) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue