mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-05 02:07:21 +00:00
Moved the build script to System.CommandLine (#1159)
This commit is contained in:
1 parent
f0fa1411c8
commit
54c3f0b3e0
12 files changed
+232
-70
No files matched your search
@@ -1,11 +1,17 @@
|
||||
// ReSharper disable ClassNeverInstantiated.Global
|
||||
// ReSharper disable UnusedType.Global
|
||||
// ReSharper disable UnusedMember.Global
|
||||
namespace Build.Commands;
|
||||
|
||||
public sealed class CheckRidsCommand
|
||||
{
|
||||
[Command("check-rids", Description = "Check the RIDs for the current OS")]
|
||||
/// <summary>
|
||||
/// Defines the command "check-rids".
|
||||
/// </summary>
|
||||
public static Command CreateCommand()
|
||||
{
|
||||
var command = new Command("check-rids", "Check the RIDs for the current OS");
|
||||
command.SetAction(_ => new CheckRidsCommand().GetRids());
|
||||
return command;
|
||||
}
|
||||
|
||||
public void GetRids()
|
||||
{
|
||||
if(!Environment.IsWorkingDirectoryValid())
|
||||
|
||||
Reference in new issue
Block a user