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

Function resolveSystem32Command

packages/desktop/src/main/wsl/runtime.ts:388–393  ·  view source on GitHub ↗
(command: string)

Source from the content-addressed store, hash-verified

386}
387
388function resolveSystem32Command(command: string) {
389 const root = process.env.SystemRoot ?? process.env.windir
390 if (!root) return command
391 const resolved = join(root, "System32", command)
392 return existsSync(resolved) ? resolved : command
393}
394
395function withTimeout(opts: RunWslOptions | undefined, timeoutMs: number): RunWslOptions {
396 return {

Callers 2

installWslDistroFunction · 0.85
installWslOpencodeFunction · 0.85

Calls 1

joinFunction · 0.85

Tested by

no test coverage detected