Add YesNt interpreter process and command integration

This commit is contained in:
Stone_Red
2026-06-11 20:44:49 +02:00
parent 160d0559e8
commit cda4dcf097
4 changed files with 68 additions and 12 deletions
+21
View File
@@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using RemSox.Processing;
namespace RemSox.UI.CLI.Commands
{
public class YesNtCommand : ICommand
{
public string Name => "yesnt";
public string Description => "Start the YesNt interpreter";
public async Task ExecuteAsync(string? arguments, Action<string> printLine)
{
int processId = ProcessManager.SpawnProcess<Processes.YesNtInterpreterProcess>(arguments?.Split(',') ?? []);
await ProcessManager.WaitForProcessExitAsync(processId);
}
}
}