export function jsonToGremlinCmd()

in src/commands/jsonToGremlin.ts [6:19]


export function jsonToGremlinCmd(
  inputFile: string,
  templateFile: string,
  outputFile: string
) {
  const inputJSON = fs.readJSONSync(inputFile) as any[];
  const template = fs.readFileSync(templateFile, { encoding: 'utf-8' });
  try {
    const graphCmdList: string[] = jsonToGremlin(inputJSON, template);
    fs.writeFileSync(outputFile, graphCmdList.join('\n'));
  } catch (err) {
    console.log(err.message);
  }
}