Files
Random-Project/TermEngine/Commands/GreetCommand.cs

30 lines
463 B
C#
Raw Normal View History

2025-07-08 04:29:21 +03:00
using System;
2025-07-09 00:22:59 +03:00
using TermApp.Core;
2025-07-08 04:29:21 +03:00
2025-07-09 00:22:59 +03:00
namespace TermApp.Commands
{
public class GreetCommand : ICommand
2025-07-08 04:29:21 +03:00
{
public string Name => "greet";
public string Description => "greets someone.. args [name]";
2025-07-09 00:22:59 +03:00
public void Execute(string[] args, string input = null)
2025-07-08 04:29:21 +03:00
{
if (args.Length == 0)
{
Console.WriteLine(Description);
return;
}
Console.WriteLine("Greetings , " + args[0]);
}
2025-07-09 00:22:59 +03:00
}
}