| 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected