(command: string, distro: string, opts?: RunWslOptions)
| 315 | } |
| 316 | |
| 317 | export async function readWslCommandVersion(command: string, distro: string, opts?: RunWslOptions) { |
| 318 | const result = await runWslSh(`${shellEscape(command)} --version 2>/dev/null || true`, distro, opts) |
| 319 | return firstLine(result.stdout) |
| 320 | } |
| 321 | |
| 322 | export function openWslTerminal(distro?: string | null) { |
| 323 | return new Promise<void>((resolve, reject) => { |
nothing calls this directly
no test coverage detected