Refactor console client to new Govor.ConsoleClient project

Removed Govor.Console implementation and introduced a new Govor.ConsoleClient project with a modular command-based architecture. Added dependency injection, command dispatcher, middleware pipeline, logging, and interactive command support. Updated solution and project files to reflect the new structure.
This commit is contained in:
Artemy
2025-07-19 19:08:21 +07:00
parent ff873ae179
commit f524a9f0b7
21 changed files with 410 additions and 268 deletions
+17
View File
@@ -0,0 +1,17 @@
using Govor.ConsoleClient.Services;
namespace Govor.ConsoleClient.Commands;
public interface ICommand
{
Task ExecuteAsync(CommandContext context);
string LongHelp();
string ShortHelp();
}
[AttributeUsage(AttributeTargets.Class)]
public class CommandRouteAttribute : Attribute
{
public string Path { get; }
public CommandRouteAttribute(string path) => Path = path;
}