feat: plugins

This commit is contained in:
2025-04-21 08:15:19 +02:00
parent cea3d11a41
commit e676e35e02
8 changed files with 50 additions and 60 deletions

View File

@ -1,13 +0,0 @@
namespace Automancer.Common;
public record CommandInfo(string Path, string? Description);
public class CommandRegistry
{
public List<CommandInfo> Commands { get; } = new();
public void Add(string path, string? description)
{
Commands.Add(new CommandInfo(path, description));
}
}

View File

@ -1,15 +0,0 @@
namespace Automancer.Common;
using Spectre.Console.Cli;
public interface ICommandModule
{
void Configure(IConfigurator config);
}
public interface ICommandModuleWithRegistry : ICommandModule
{
void Configure(IConfigurator config, CommandRegistry registry);
}