ShiftOS-Rewind/ShiftOS.Main/Terminal/Commands/Hello.cs

24 lines
684 B
C#
Raw Normal View History

2017-10-15 19:25:37 +00:00
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;
2017-11-18 16:09:54 +00:00
public override void Run(params string[] parameters)
2017-10-15 19:25:37 +00:00
{
string name = string.Join(" ", parameters);
2017-11-18 16:09:54 +00:00
WriteLine($"Oh, hello, {name}.");
2017-10-15 19:25:37 +00:00
}
}
}