debug shell and clear metacmd
This commit is contained in:
parent
f31eff4566
commit
3d22591f46
2 changed files with 12 additions and 1 deletions
|
@ -47,6 +47,7 @@ namespace ShiftOS.Frontend
|
|||
[TutorialLock]
|
||||
public static class TerminalCommands
|
||||
{
|
||||
[MetaCommand]
|
||||
[Command("clear", description = "{DESC_CLEAR}")]
|
||||
public static bool Clear()
|
||||
{
|
||||
|
@ -60,8 +61,15 @@ namespace ShiftOS.Frontend
|
|||
|
||||
public static class ShiftOSCommands
|
||||
{
|
||||
#if DEBUG
|
||||
[Command("debug")]
|
||||
public static void EnterDebug()
|
||||
{
|
||||
TerminalBackend.SetShellOverride("shiftos_debug> ");
|
||||
}
|
||||
#endif
|
||||
|
||||
[Command("setsfxenabled", description = "{DESC_SETSFXENABLED}")]
|
||||
[Command("setsfxenabled", description = "{DESC_SETSFXENABLED}")]
|
||||
[RequiresArgument("id")]
|
||||
public static bool SetSfxEnabled(Dictionary<string, object> args)
|
||||
{
|
||||
|
|
|
@ -10,6 +10,7 @@ namespace ShiftOS.Frontend
|
|||
{
|
||||
public static class HackerTestCommands
|
||||
{
|
||||
[ShellConstraint("shiftos_debug> ")]
|
||||
[Command("lsports")]
|
||||
public static void ListAllPorts()
|
||||
{
|
||||
|
@ -19,6 +20,7 @@ namespace ShiftOS.Frontend
|
|||
}
|
||||
}
|
||||
|
||||
[ShellConstraint("shiftos_debug> ")]
|
||||
[Command("describehackable")]
|
||||
[RequiresArgument("id")]
|
||||
public static void DescribeHackable(Dictionary<string, object> args)
|
||||
|
@ -41,6 +43,7 @@ namespace ShiftOS.Frontend
|
|||
Console.WriteLine(hackable.WelcomeMessage);
|
||||
}
|
||||
|
||||
[ShellConstraint("shiftos_debug> ")]
|
||||
[Command("describeport")]
|
||||
[RequiresArgument("id")]
|
||||
public static void DescribePort(Dictionary<string, object> args)
|
||||
|
|
Reference in a new issue