(terminal: Terminal.Terminal)
| 309 | ); |
| 310 | |
| 311 | const runGitDiff = (terminal: Terminal.Terminal) => { |
| 312 | const baseBranch = getBaseBranch(); |
| 313 | return pipe( |
| 314 | Command.make('git', 'diff', '--name-only', `${baseBranch}...HEAD`), |
| 315 | Command.string, |
| 316 | Effect.map(parseGitDiffOutput), |
| 317 | Effect.catchAll(handleGitDiffFailure(terminal)) |
| 318 | ); |
| 319 | }; |
| 320 | |
| 321 | const getChangedFiles = pipe(Terminal.Terminal, Effect.flatMap(runGitDiff)); |
| 322 |
nothing calls this directly
no test coverage detected