(input: {
hostname: string;
scopeId: string;
})
| 267 | }); |
| 268 | |
| 269 | export const readDaemonPointer = (input: { |
| 270 | hostname: string; |
| 271 | scopeId: string; |
| 272 | }): Effect.Effect<DaemonPointer | null, never, FileSystem.FileSystem | Path.Path> => |
| 273 | Effect.gen(function* () { |
| 274 | const fs = yield* FileSystem.FileSystem; |
| 275 | const path = yield* Path.Path; |
| 276 | const raw = yield* fs |
| 277 | .readFileString(daemonPointerPath(path, input)) |
| 278 | .pipe(Effect.catchCause(() => Effect.succeed(null))); |
| 279 | if (raw === null) return null; |
| 280 | return parsePointer(raw); |
| 281 | }); |
| 282 | |
| 283 | export const removeDaemonPointer = (input: { |
| 284 | hostname: string; |
no test coverage detected