export help function on chef object

This commit is contained in:
d98762625 2018-06-19 16:41:16 +01:00
parent 27ee7f8592
commit e04f66f599
3 changed files with 77 additions and 45 deletions

View file

@ -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) => {