(servers: WslServerItem[], distro: string)
| 1 | import type { WslDistroProbe, WslOpencodeCheck, WslServerItem } from "../../preload/types" |
| 2 | |
| 3 | export function wslServerIdToRestart(servers: WslServerItem[], distro: string) { |
| 4 | return servers.find((item) => item.config.distro === distro)?.config.id |
| 5 | } |
| 6 | |
| 7 | export function clearWslDistroState( |
| 8 | distroProbes: Record<string, WslDistroProbe>, |
no test coverage detected