GG EZ, ima go piss
This commit is contained in:
22
TermEngine/GreetCommand.cs
Normal file
22
TermEngine/GreetCommand.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
|
||||
public class GreetCommand : ICommand
|
||||
{
|
||||
public string Name => "greet";
|
||||
public string Description => "greets someone.. args [name]";
|
||||
|
||||
public void Execute(string[] args)
|
||||
{
|
||||
|
||||
if (args.Length == 0)
|
||||
{
|
||||
|
||||
Console.WriteLine(Description);
|
||||
return;
|
||||
|
||||
}
|
||||
|
||||
Console.WriteLine("Greetings , " + args[0]);
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user