From 5f736b062c4fdf10b45a1d7525b89988a7da7310 Mon Sep 17 00:00:00 2001 From: Booklordofthedings Date: Mon, 17 Feb 2025 12:44:15 +0100 Subject: [PATCH 1/2] initial commit --- BeefProj.toml | 5 +++++ BeefSpace.toml | 5 +++++ src/Program.bf | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 56 insertions(+) create mode 100644 BeefProj.toml create mode 100644 BeefSpace.toml create mode 100644 src/Program.bf diff --git a/BeefProj.toml b/BeefProj.toml new file mode 100644 index 0000000..6fff957 --- /dev/null +++ b/BeefProj.toml @@ -0,0 +1,5 @@ +FileVersion = 1 + +[Project] +Name = "Scarab" +StartupObject = "Scarab.Program" diff --git a/BeefSpace.toml b/BeefSpace.toml new file mode 100644 index 0000000..56368e3 --- /dev/null +++ b/BeefSpace.toml @@ -0,0 +1,5 @@ +FileVersion = 1 +Projects = {Scarab = {Path = "."}} + +[Workspace] +StartupProject = "Scarab" diff --git a/src/Program.bf b/src/Program.bf new file mode 100644 index 0000000..7546eb8 --- /dev/null +++ b/src/Program.bf @@ -0,0 +1,46 @@ +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) + { + Console.Read(); + + + /* + 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}>"); + } +*/ + +} From cc4092483187a409d653af13103aa3b56e8cd3df Mon Sep 17 00:00:00 2001 From: Booklordofthedings Date: Sat, 29 Mar 2025 10:36:49 +0100 Subject: [PATCH 2/2] Some stuff --- BeefSpace.toml | 2 +- BeefSpace_Lock.toml | 6 ++++++ src/Commands/ScarabCommandAttribute.bf | 8 ++++++++ src/Program.bf | 11 +++-------- 4 files changed, 18 insertions(+), 9 deletions(-) create mode 100644 BeefSpace_Lock.toml create mode 100644 src/Commands/ScarabCommandAttribute.bf diff --git a/BeefSpace.toml b/BeefSpace.toml index 56368e3..0f9dff6 100644 --- a/BeefSpace.toml +++ b/BeefSpace.toml @@ -1,5 +1,5 @@ FileVersion = 1 -Projects = {Scarab = {Path = "."}} +Projects = {Scarab = {Path = "."}, Common = {Git = "https://code.booklordofthe.dev/Booklordofthedings/Common"}} [Workspace] StartupProject = "Scarab" diff --git a/BeefSpace_Lock.toml b/BeefSpace_Lock.toml new file mode 100644 index 0000000..0b673b8 --- /dev/null +++ b/BeefSpace_Lock.toml @@ -0,0 +1,6 @@ +FileVersion = 1 + +[Locks.Common.Git] +URL = "https://code.booklordofthe.dev/Booklordofthedings/Common" +Tag = "" +Hash = "50abe7a88b4cbaae3273d6a2f855266c55b28ab1" diff --git a/src/Commands/ScarabCommandAttribute.bf b/src/Commands/ScarabCommandAttribute.bf new file mode 100644 index 0000000..43aba97 --- /dev/null +++ b/src/Commands/ScarabCommandAttribute.bf @@ -0,0 +1,8 @@ +namespace Scarab.Commands; + +using System; + +[AttributeUsage(.Function)] +struct ScarabCommandAttribute : Attribute +{ +} \ No newline at end of file diff --git a/src/Program.bf b/src/Program.bf index 7546eb8..284f816 100644 --- a/src/Program.bf +++ b/src/Program.bf @@ -7,17 +7,15 @@ using System.Interop; class Program { - //private static bool _shouldClose = false; + 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 Close() => _shouldClose = true; public static void Main(String[] args) { - Console.Read(); - + - /* while(!_shouldClose) { DrawCursor(); @@ -26,7 +24,6 @@ class Program Close(); } - */ /* - Load Configuration @@ -35,12 +32,10 @@ class Program */ } -/* private static void DrawCursor() { var dir = Directory.GetCurrentDirectory(.. scope .()); Console.Write(scope $"{dir}>"); } -*/ }