MCPcopy Index your code
hub / github.com/Kilo-Org/kilocode / select

Function select

packages/opencode/src/shell/shell.ts:108–115  ·  view source on GitHub ↗
(file: string | undefined, opts?: { acceptable?: boolean })

Source from the content-addressed store, hash-verified

106}
107
108function select(file: string | undefined, opts?: { acceptable?: boolean }) {
109 if (file && (!opts?.acceptable || ok(file))) {
110 const shell = resolve(file)
111 if (shell) return shell
112 }
113 if (process.platform === "win32") return win()[0]!
114 return fallback()
115}
116
117export function gitbash() {
118 if (process.platform !== "win32") return

Callers 5

shell.tsFile · 0.70
preferredFunction · 0.70
acceptableFunction · 0.70
compaction.tsFile · 0.50
agent.tsFile · 0.50

Calls 4

okFunction · 0.70
resolveFunction · 0.70
winFunction · 0.70
fallbackFunction · 0.70

Tested by

no test coverage detected