feat: plugins
This commit is contained in:
@ -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));
|
||||
}
|
||||
}
|
@ -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);
|
||||
}
|
Reference in New Issue
Block a user