From 24eea3c6900a718ffca598c0b751e16a097bf57d Mon Sep 17 00:00:00 2001 From: AShifter Date: Sun, 25 Feb 2018 14:29:41 -0700 Subject: clean up resources let's get this show on the road baby --- ShiftOS.Main/Terminal/Commands/Hello.cs | 23 --------------- ShiftOS.Main/Terminal/Commands/TestStory.cs | 37 ------------------------ ShiftOS.Main/Terminal/Commands/forceimplement.cs | 12 ++++++++ ShiftOS.Main/Terminal/Commands/upgrade.cs | 24 +++++++++++++++ 4 files changed, 36 insertions(+), 60 deletions(-) delete mode 100644 ShiftOS.Main/Terminal/Commands/Hello.cs delete mode 100644 ShiftOS.Main/Terminal/Commands/TestStory.cs create mode 100644 ShiftOS.Main/Terminal/Commands/forceimplement.cs create mode 100644 ShiftOS.Main/Terminal/Commands/upgrade.cs (limited to 'ShiftOS.Main/Terminal') diff --git a/ShiftOS.Main/Terminal/Commands/Hello.cs b/ShiftOS.Main/Terminal/Commands/Hello.cs deleted file mode 100644 index f4940b5..0000000 --- a/ShiftOS.Main/Terminal/Commands/Hello.cs +++ /dev/null @@ -1,23 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace ShiftOS.Main.Terminal.Commands -{ - public class Hello : TerminalCommand - { - public override string Name { get; } = "Hello"; - public override string Summary { get; } = "Just an example command."; - public override string Usage { get; } = "Hello ."; - public override bool Unlocked { get; set; } = true; - - public override void Run(params string[] parameters) - { - string name = string.Join(" ", parameters); - WriteLine($"Oh, hello, {name}."); - } - } -} diff --git a/ShiftOS.Main/Terminal/Commands/TestStory.cs b/ShiftOS.Main/Terminal/Commands/TestStory.cs deleted file mode 100644 index b3c0989..0000000 --- a/ShiftOS.Main/Terminal/Commands/TestStory.cs +++ /dev/null @@ -1,37 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading; -using System.Threading.Tasks; - -namespace ShiftOS.Main.Terminal.Commands -{ - public class TestStory : TerminalCommand - { - public override string Name { get; } = "teststory"; - public override string Summary { get; } = "Debug Command - Test the intro"; - public override string Usage { get; } = "teststory"; - public override bool Unlocked { get; set; } = false; - - public override void Run(params string[] parameters) - { - var r = new Random(); - WriteLine($"Incoming connection from {r.Next(0, 256)}.{r.Next(0, 256)}.{r.Next(0, 256)}.{r.Next(0, 256)}..."); - WriteLine(); //The various Task.Delay functions are to make the Thread.Sleep function work. - Thread.Sleep(r.Next(2000, 4500)); - WriteLine("User set alias as \"DevX\"."); - Task.Delay(1); - Thread.Sleep(4000); - WriteLine("User has connected successfully!"); - Task.Delay(1); - Thread.Sleep(3400); - StoryWriteLine("Well, it seems ShiftOS has installed. Congrats.... err... whatever your name is."); - } - private void StoryWriteLine(string value) - { - WriteLine($"[devx@master ~]$ {value}"); - } - } -} diff --git a/ShiftOS.Main/Terminal/Commands/forceimplement.cs b/ShiftOS.Main/Terminal/Commands/forceimplement.cs new file mode 100644 index 0000000..f793820 --- /dev/null +++ b/ShiftOS.Main/Terminal/Commands/forceimplement.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ShiftOS.Main.Terminal.Commands +{ + class forceimplement + { + } +} diff --git a/ShiftOS.Main/Terminal/Commands/upgrade.cs b/ShiftOS.Main/Terminal/Commands/upgrade.cs new file mode 100644 index 0000000..83ba103 --- /dev/null +++ b/ShiftOS.Main/Terminal/Commands/upgrade.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ShiftOS.Main.Terminal.Commands +{ + public class upgrade : TerminalCommand + { + public override string Name { get; } = "upgrade"; + public override string Summary { get; } = "Allows you to install upgrades for ShiftOS."; + public override string Usage { get; } = "upgrade "; + public override bool Unlocked { get; set; } = true; + + public override void Run(params string[] args) + { + if (args.Length == 0) + { + WriteLine("sbash: "); + } + } + } +} -- cgit v1.2.3