New Commands & piped interpreter!

This commit is contained in:
2025-07-09 00:22:59 +03:00
parent e3dc8d9d42
commit 8927637048
19 changed files with 239 additions and 76 deletions

View File

@@ -0,0 +1,35 @@
using System;
using TermApp.Core;
namespace TermApp.Commands
{
public class HelpCommand : ICommand
{
private readonly CommandInterpreter _interpreter;
public HelpCommand(CommandInterpreter interpreter)
{
_interpreter = interpreter;
}
public string Name => "help";
public String Description => "Shows the Help pop Up";
public void Execute(string[] args, string input = null)
{
Console.WriteLine("Avaliable Commands:");
foreach (var cmd in _interpreter.GetAllCommands())
{
Console.WriteLine($"Command : {cmd.Name} | {cmd.Description}");
}
}
}
}