Moved the build script to System.CommandLine (#1159)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-11-04 14:57:37 +01:00
1 parent f0fa1411c8
commit 54c3f0b3e0
12 files changed
+232 -70

No files matched your search

+10 -4
View File
@@ -2,9 +2,6 @@ using Build.Tools;
using SharedTools;
// ReSharper disable ClassNeverInstantiated.Global
// ReSharper disable UnusedType.Global
// ReSharper disable UnusedMember.Global
namespace Build.Commands;
/// <summary>
@@ -22,7 +19,16 @@ public sealed class VerifyCommand
/// </summary>
private const string SIDECAR_PREFIX = "mindworkAIStudioServer-";
[Command("verify", Description = "Run the quality gate: .NET tests, the trim smoke test, Rust tests, Clippy, and the model sources")]
/// <summary>
/// Defines the command "verify".
/// </summary>
public static Command CreateCommand()
{
var command = new Command("verify", "Run the quality gate: .NET tests, the trim smoke test, Rust tests, Clippy, and the model sources");
command.SetAction((_, _) => new VerifyCommand().Verify());
return command;
}
public async Task<int> Verify()
{
if(!Environment.IsWorkingDirectoryValid())