Code cleanup

This commit is contained in:
Stone_Red
2026-06-08 21:30:40 +02:00
parent 124b5368b1
commit 145055b77e
25 changed files with 232 additions and 192 deletions
+2 -4
View File
@@ -1,6 +1,4 @@
using System;
namespace RemSox.UI.GUI.CLI;
namespace RemSox.UI.CLI;
public static class CommandManager
{
@@ -48,7 +46,7 @@ public static class CommandManager
if (trimmedInput.Length > commandName.Length)
{
arguments = trimmedInput.Substring(commandName.Length).TrimStart();
arguments = trimmedInput[commandName.Length..].TrimStart();
}
entry.Value.Execute(arguments, printLine);
+1 -3
View File
@@ -1,6 +1,4 @@
using System;
namespace RemSox.UI.GUI.CLI.Commands;
namespace RemSox.UI.CLI.Commands;
public sealed class ClearCommand : ICommand
{
+2 -2
View File
@@ -1,6 +1,6 @@
using System;
using RemSox.UI.CLI;
namespace RemSox.UI.GUI.CLI.Commands;
namespace RemSox.UI.CLI.Commands;
public sealed class HaltCommand : ICommand
{
+2 -2
View File
@@ -1,6 +1,6 @@
using System;
using RemSox.UI.CLI;
namespace RemSox.UI.GUI.CLI.Commands;
namespace RemSox.UI.CLI.Commands;
public sealed class HelpCommand : ICommand
{
+2 -2
View File
@@ -1,7 +1,7 @@
using System;
using RemSox.Processing;
using RemSox.UI.CLI;
namespace RemSox.UI.GUI.CLI.Commands;
namespace RemSox.UI.CLI.Commands;
public sealed class SpawnTestProcessCommand : ICommand
{
+4 -5
View File
@@ -1,9 +1,8 @@
using System;
using RemSox.Processing;
using RemSox.Processes;
using RemSox.UI.GUI.CLI;
using RemSox.Processing;
using RemSox.UI.CLI;
namespace RemSox.UI.GUI.CLI.Commands;
namespace RemSox.UI.CLI.Commands;
public class StartGuiCommand : ICommand
{
@@ -13,6 +12,6 @@ public class StartGuiCommand : ICommand
public void Execute(string? arguments, Action<string> printLine)
{
printLine("Starting Desktop Process...");
ProcessManager.SpawnProcess<DesktopProcess>();
_ = ProcessManager.SpawnProcess<DesktopProcess>();
}
}
+1 -4
View File
@@ -1,7 +1,4 @@
namespace RemSox.UI.GUI.CLI;
using System;
namespace RemSox.UI.CLI;
/// <summary>
/// Defines a command executable via the CLI or GUI terminal.
/// </summary>