mirror of
https://github.com/Stone-Red-Code/RemSox.git
synced 2026-09-06 23:41:33 +02:00
Code cleanup
This commit is contained in:
@@ -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,6 +1,4 @@
|
||||
using System;
|
||||
|
||||
namespace RemSox.UI.GUI.CLI.Commands;
|
||||
namespace RemSox.UI.CLI.Commands;
|
||||
|
||||
public sealed class ClearCommand : ICommand
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user