aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Main/Terminal/Commands/Hello.cs
diff options
context:
space:
mode:
authorAlex-TIMEHACK <[email protected]>2017-10-15 20:25:37 +0100
committerAlex-TIMEHACK <[email protected]>2017-10-15 20:25:37 +0100
commitb2f7322f3072ff90c8e6039ec4b3219d3c3fb919 (patch)
treec9bfc21c4cc20df9eab5dbaa1c12772a90ef0f74 /ShiftOS.Main/Terminal/Commands/Hello.cs
parent7efdde5832b517153363621aaec982211ff25f61 (diff)
downloadshiftos-rewind-b2f7322f3072ff90c8e6039ec4b3219d3c3fb919.tar.gz
shiftos-rewind-b2f7322f3072ff90c8e6039ec4b3219d3c3fb919.tar.bz2
shiftos-rewind-b2f7322f3072ff90c8e6039ec4b3219d3c3fb919.zip
It's broken.
Diffstat (limited to 'ShiftOS.Main/Terminal/Commands/Hello.cs')
-rw-r--r--ShiftOS.Main/Terminal/Commands/Hello.cs25
1 files changed, 25 insertions, 0 deletions
diff --git a/ShiftOS.Main/Terminal/Commands/Hello.cs b/ShiftOS.Main/Terminal/Commands/Hello.cs
new file mode 100644
index 0000000..efc9a9a
--- /dev/null
+++ b/ShiftOS.Main/Terminal/Commands/Hello.cs
@@ -0,0 +1,25 @@
+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 <NAME>.";
+ public override bool Unlocked { get; set; } = false;
+
+ public override async void Run(params string[] parameters)
+ {
+ string name = string.Join(" ", parameters);
+ WriteLine($"Oh, hello, {name}.", Color.Red);
+ string age = await Input("Hey, What's your age?");
+ WriteLine($"Ok, so your name is {name} and your age {age}.");
+ }
+ }
+}