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:
1 parent
68df27e994
commit
0587d8abda
9 files changed
+62
-41
No files matched your search
@@ -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,
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user