MCPcopy Create free account
hub / github.com/anthropics/claude-code / run

Function run

mods/diff/tests/fixtures/scripted/scripted-git-of.ts:18–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16 const argvs: (readonly string[])[] = []
17
18 const run: ScriptedGit['run'] = argv => {
19 argvs.push(argv)
20
21 const line = argv.join(' ')
22
23 const scripted = Object.entries(script).find(([pattern]) =>
24 line.includes(pattern),
25 )
26
27 return Promise.resolve(scripted?.[1] ?? UNSCRIPTED)
28 }
29
30 return { run, argvs }
31}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected