MCPcopy Create free account
hub / github.com/Microck/opencode-studio / getWslDistributions

Function getWslDistributions

server/index.js:546–554  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

544}
545
546const getWslDistributions = () => {
547 try {
548 const { execSync } = require('child_process');
549 const stdout = execSync('wsl.exe -l -q', { encoding: 'utf16le', stdio: ['ignore', 'pipe', 'pipe'], timeout: 1000 });
550 return stdout.trim().split('\n').filter(d => d.length > 0);
551 } catch {
552 return [];
553 }
554};
555
556const getPaths = () => {
557 const platform = process.platform;

Callers 1

getPathsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected