mirror of
https://github.com/Govor-team/Govor.git
synced 2026-07-21 19:54:55 +00:00
f524a9f0b7
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.
17 lines
388 B
C#
17 lines
388 B
C#
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;
|
|
} |