(filepath: string, content: string)
| 45 | self.pipe(Effect.provide(instructionLayer(global, flags))) |
| 46 | |
| 47 | const write = (filepath: string, content: string) => |
| 48 | Effect.gen(function* () { |
| 49 | const fs = yield* FileSystem.FileSystem |
| 50 | yield* fs.makeDirectory(path.dirname(filepath), { recursive: true }) |
| 51 | yield* fs.writeFileString(filepath, content) |
| 52 | }) |
| 53 | |
| 54 | const writeFiles = (dir: string, files: Record<string, string>) => |
| 55 | Effect.all( |
no outgoing calls
no test coverage detected