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

Function wslArgs

packages/desktop/src/main/wsl/runtime.ts:36–38  ·  view source on GitHub ↗
(args: string[], distro?: string | null, user?: string | null)

Source from the content-addressed store, hash-verified

34const DEFAULT_WSL_INSTALL_TIMEOUT_MS = 15 * 60_000
35
36export function wslArgs(args: string[], distro?: string | null, user?: string | null) {
37 return [...(distro ? ["-d", distro] : []), ...(user ? ["--user", user] : []), "--", ...args]
38}
39
40export function runWsl(args: string[], opts: RunWslOptions = {}) {
41 return runCommand("wsl", args, opts)

Callers 3

spawnWslSidecarFunction · 0.90
runWslInDistroFunction · 0.85
installWslOpencodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected