Use typed exit codes in VCS process results

- Switch VCS process and git driver results to `ChildProcessSpawner.ExitCode`
- Update status checks and fallback results to use the new typed exit code
- Refresh tests to match the new result shape
This commit is contained in:
Julius Marminge authored and Julius Marminge committed 2026-05-02 14:22:14 -07:00
1 parent 68df27e994
commit 0587d8abda
9 files changed
+62 -41

No files matched your search

+6 -2
View File
@@ -211,7 +211,11 @@ function runGit(
args: readonly string[],
allowNonZeroExit = false,
): Effect.Effect<
{ readonly code: number; readonly stdout: string; readonly stderr: string },
{
readonly exitCode: GitVcsDriver.ExecuteGitResult["exitCode"];
readonly stdout: string;
readonly stderr: string;
},
GitCommandError,
GitVcsDriver.GitVcsDriver
> {
@@ -224,7 +228,7 @@ function runGit(
allowNonZeroExit,
});
return {
code: result.code,
exitCode: result.exitCode,
stdout: result.stdout,
stderr: result.stderr,
};