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

Function sh

packages/opencode/test/tool/shell.test.ts:113–113  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

111const cmdShell = shells.find((item) => item.label === "cmd")
112
113const sh = () => Shell.name(Shell.acceptable())
114const evalarg = (text: string) => (sh() === "cmd" ? quote(text) : squote(text))
115
116const fill = (mode: "lines" | "bytes", n: number) => {

Callers 2

evalargFunction · 0.85
fillFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected