(filePath: string, content: string)
| 14 | * @param content content of file |
| 15 | */ |
| 16 | export async function writeFile (filePath: string, content: string) { |
| 17 | return fs.writeFile( |
| 18 | filePath, |
| 19 | GENERATED_FILE_COMMENT + '\n\n' + content.replace(/\r\n/g, '\n') |
| 20 | ) |
| 21 | } |
| 22 | |
| 23 | export function findGroupByName (ast: Assignment[], name: string): Group | undefined { |
| 24 | return ast.find((a: Assignment): a is Group => a.Type === 'group' && a.Name === name) |
no outgoing calls
no test coverage detected
searching dependent graphs…