(workspaceKey: string)
| 290 | * Returns null if the entry doesn't exist. |
| 291 | */ |
| 292 | export function readDaemonRegistryEntry(workspaceKey: string): DaemonRegistryEntry | null { |
| 293 | const workspaceResult = readRegistryEntryAtPath( |
| 294 | registryPathForWorkspaceKey(workspaceKey), |
| 295 | workspaceKey, |
| 296 | ); |
| 297 | if (workspaceResult.status === 'valid') { |
| 298 | return workspaceResult.entry; |
| 299 | } |
| 300 | return null; |
| 301 | } |
| 302 | |
| 303 | /** |
| 304 | * List all daemon registry entries. |
no test coverage detected