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

Function evalarg

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

Source from the content-addressed store, hash-verified

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) => {
117 const code =

Callers 1

fillFunction · 0.85

Calls 3

shFunction · 0.85
squoteFunction · 0.85
quoteFunction · 0.70

Tested by

no test coverage detected