MCPcopy Create free account
hub / github.com/CodeForBreakfast/eventsourcing / readChangesetDirectory

Function readChangesetDirectory

scripts/validate-changesets.ts:231–240  ·  view source on GitHub ↗
(
  fs: FileSystem.FileSystem,
  path: Path.Path,
  changesetsDir: string
)

Source from the content-addressed store, hash-verified

229 );
230
231const readChangesetDirectory = (
232 fs: FileSystem.FileSystem,
233 path: Path.Path,
234 changesetsDir: string
235) =>
236 pipe(
237 changesetsDir,
238 fs.readDirectory,
239 Effect.flatMap(parseChangesetFiles(fs, path, changesetsDir))
240 );
241
242const checkAndReadChangesets =
243 (fs: FileSystem.FileSystem, path: Path.Path, changesetsDir: string) => (exists: boolean) =>

Callers 1

checkAndReadChangesetsFunction · 0.85

Calls 1

parseChangesetFilesFunction · 0.85

Tested by

no test coverage detected