Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
113
const
sh = () => Shell.name(Shell.acceptable())
114
const
evalarg = (text: string) => (sh() ===
"cmd"
? quote(text) : squote(text))
115
116
const
fill = (mode:
"lines"
|
"bytes"
, n: number) => {
117
const
code =
Callers
1
fill
Function · 0.85
Calls
3
sh
Function · 0.85
squote
Function · 0.85
quote
Function · 0.70
Tested by
no test coverage detected