MCPcopy Index your code
hub / github.com/anomalyco/opencode / readWslCommandVersion

Function readWslCommandVersion

packages/desktop/src/main/wsl/runtime.ts:317–320  ·  view source on GitHub ↗
(command: string, distro: string, opts?: RunWslOptions)

Source from the content-addressed store, hash-verified

315}
316
317export 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
322export function openWslTerminal(distro?: string | null) {
323 return new Promise<void>((resolve, reject) => {

Callers

nothing calls this directly

Calls 3

runWslShFunction · 0.85
shellEscapeFunction · 0.85
firstLineFunction · 0.85

Tested by

no test coverage detected