MCPcopy Index your code
hub / github.com/coder/mux / execSyncFn

Function execSyncFn

src/node/utils/main/bashPath.test.ts:5–17  ·  view source on GitHub ↗
(command: string)

Source from the content-addressed store, hash-verified

3describe("getBashPathForPlatform (Windows)", () => {
4 it("skips WSL launcher when it is first in PATH", () => {
5 const execSyncFn = (command: string) => {
6 if (command === "where git") {
7 throw new Error("git not in PATH");
8 }
9
10 if (command === "where bash") {
11 return ["C:\\Windows\\System32\\bash.exe", "D:\\Custom\\Git\\usr\\bin\\bash.exe"].join(
12 "\r\n"
13 );
14 }
15
16 throw new Error(`unexpected command: ${command}`);
17 };
18
19 const existing = new Set<string>([
20 "C:\\Windows\\System32\\bash.exe",

Callers 1

findWindowsBashFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected