Scarab/src/Program.bf
2025-03-29 10:36:49 +01:00

41 lines
678 B
Beef

namespace Scarab;
using System;
using System.IO;
using System.Diagnostics;
using System.Interop;
class Program
{
private static bool _shouldClose = false;
///Close the program once the execution of the current command is finished
public static void Close() => _shouldClose = true;
public static void Main(String[] args)
{
while(!_shouldClose)
{
DrawCursor();
var input = Console.ReadLine(.. scope .());
if(input == "exit")
Close();
}
/*
- Load Configuration
- Read Input
- Process Command
*/
}
private static void DrawCursor()
{
var dir = Directory.GetCurrentDirectory(.. scope .());
Console.Write(scope $"{dir}>");
}
}