mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-17 11:57:59 +00:00
Made the build script report failed builds through its exit code (#1067)
This commit is contained in:
1 parent
da0c4e6bd9
commit
b1e5199f62
2 files changed
+98
-53
No files matched your search
@@ -0,0 +1,12 @@
|
||||
namespace Build.Tools;
|
||||
|
||||
/// <summary>
|
||||
/// What an external tool wrote, and how it ended.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The text alone cannot tell whether a tool failed: a build may stop on a diagnostic which no filter
|
||||
/// recognizes, or without writing any at all. Only the exit code answers that question reliably.
|
||||
/// </remarks>
|
||||
/// <param name="Text">Everything the tool wrote to its standard output and its standard error, line by line.</param>
|
||||
/// <param name="ExitCode">The exit code of the tool, where anything but zero is a failure.</param>
|
||||
public readonly record struct CommandOutput(string Text, int ExitCode);
|
||||
Reference in new issue
Block a user