aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Main/Terminal/Commands/Hello.cs
diff options
context:
space:
mode:
authorjtsshieh <[email protected]>2017-11-18 11:56:23 -0500
committerGitHub <[email protected]>2017-11-18 11:56:23 -0500
commitce700260e681f483e8e7120619f690da2d8847a6 (patch)
tree6897964ac67014fd497ee4f8c29c0ba1742ba5d5 /ShiftOS.Main/Terminal/Commands/Hello.cs
parent97722fbe9d474adffbba0b92e9727c48a8205234 (diff)
parentc0400bc229d5f275955d6c964108deebf0908b4b (diff)
downloadshiftos-rewind-ce700260e681f483e8e7120619f690da2d8847a6.tar.gz
shiftos-rewind-ce700260e681f483e8e7120619f690da2d8847a6.tar.bz2
shiftos-rewind-ce700260e681f483e8e7120619f690da2d8847a6.zip
Merge pull request #15 from Alex-TIMEHACK/master
Fully working command handler (Alex)
Diffstat (limited to 'ShiftOS.Main/Terminal/Commands/Hello.cs')
-rw-r--r--ShiftOS.Main/Terminal/Commands/Hello.cs23
1 files changed, 23 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..a826532
--- /dev/null
+++ b/ShiftOS.Main/Terminal/Commands/Hello.cs
@@ -0,0 +1,23 @@
+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 void Run(params string[] parameters)
+ {
+ string name = string.Join(" ", parameters);
+ WriteLine($"Oh, hello, {name}.");
+ }
+ }
+}