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

Function full

packages/core/src/shell.ts:66–75  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

64}
65
66function full(file: string) {
67 if (process.platform !== "win32") return file
68 const shell = FSUtil.windowsPath(file)
69 if (path.win32.dirname(shell) !== ".") {
70 if (shell.startsWith("/") && name(shell) === "bash") return gitbash() || shell
71 return shell
72 }
73 if (name(shell) === "bash") return gitbash() || which(shell) || shell
74 return which(shell) || shell
75}
76
77function meta(file: string) {
78 return META[name(file)]

Callers 3

resolveFunction · 0.70
infoFunction · 0.70
SessionTodoDockFunction · 0.50

Calls 3

whichFunction · 0.90
gitbashFunction · 0.85
nameFunction · 0.70

Tested by

no test coverage detected