(directory: string, vcs?: Location.Interface["vcs"])
| 36 | ) |
| 37 | |
| 38 | function provide(directory: string, vcs?: Location.Interface["vcs"]) { |
| 39 | const locationLayer = Layer.succeed( |
| 40 | Location.Service, |
| 41 | Location.Service.of(location({ directory: AbsolutePath.make(directory) }, { vcs })), |
| 42 | ) |
| 43 | return Effect.provide( |
| 44 | AppNodeBuilder.build(Watcher.node, [ |
| 45 | [Config.node, configLayer], |
| 46 | [Location.node, locationLayer], |
| 47 | ]).pipe(Layer.provide(flagsLayer)), |
| 48 | ) |
| 49 | } |
| 50 | |
| 51 | function withTmp<A, E, R>( |
| 52 | f: (directory: string, vcs?: Location.Interface["vcs"]) => Effect.Effect<A, E, R>, |
no test coverage detected