mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-27 22:39:47 +00:00
21 lines
629 B
C#
21 lines
629 B
C#
|
// 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")]
|
||
|
public void GetRids()
|
||
|
{
|
||
|
if(!Environment.IsWorkingDirectoryValid())
|
||
|
return;
|
||
|
|
||
|
var rids = Environment.GetRidsForCurrentOS();
|
||
|
Console.WriteLine("The following RIDs are available for the current OS:");
|
||
|
foreach (var rid in rids)
|
||
|
{
|
||
|
Console.WriteLine($"- {rid}");
|
||
|
}
|
||
|
}
|
||
|
}
|