MCPcopy Create free account
hub / github.com/anomalyco/opencode / defaultShell

Function defaultShell

packages/core/src/tool/bash.ts:49–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47type Output = typeof Output.Type
48
49const defaultShell = () => (process.platform === "win32" ? (process.env.COMSPEC ?? "cmd.exe") : "/bin/sh")
50
51const modelOutput = (output: Output) => {
52 const warnings = output.warnings?.length

Callers 1

bash.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected