30 lines
463 B
C#
30 lines
463 B
C#
using System;
|
|
using TermApp.Core;
|
|
|
|
namespace TermApp.Commands
|
|
{
|
|
|
|
public class GreetCommand : ICommand
|
|
{
|
|
public string Name => "greet";
|
|
public string Description => "greets someone.. args [name]";
|
|
|
|
public void Execute(string[] args, string input = null)
|
|
{
|
|
|
|
if (args.Length == 0)
|
|
{
|
|
|
|
Console.WriteLine(Description);
|
|
return;
|
|
|
|
}
|
|
|
|
Console.WriteLine("Greetings , " + args[0]);
|
|
|
|
}
|
|
}
|
|
|
|
}
|
|
|