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

Function count

packages/opencode/src/cli/cmd/run/tool.ts:284–286  ·  view source on GitHub ↗
(n: number, label: string)

Source from the content-addressed store, hash-verified

282}
283
284function count(n: number, label: string): string {
285 return `${n} ${label}${n === 1 ? "" : "es"}`
286}
287
288function runGlob(p: ToolProps<typeof GlobTool>): ToolInline {
289 const root = p.input.path ?? ""

Callers 2

runGlobFunction · 0.70
runGrepFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected