MCPcopy Create free account
hub / github.com/DTStack/Taier / writerFile

Function writerFile

taier-ui/scripts/getSwagger.js:187–192  ·  view source on GitHub ↗
(filePath, renderString)

Source from the content-addressed store, hash-verified

185}
186/* 生成文件 */
187function writerFile(filePath, renderString) {
188 fs.writeFile(filePath, renderString, (err) => {
189 if (err) logs(colors.red('生成api文件操作失败'));
190 else logs(colors.green(`生成api文件操作成功,生成目录: ${filePath} `));
191 });
192}
193
194/* 渲染获取字符串 */
195function renderMustache(interfaceData) {

Callers 1

swaggerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected