feat: Dynamic command loader, default command with module registry

This commit is contained in:
2025-04-20 12:38:27 +02:00
parent a7cae86254
commit cea3d11a41
13 changed files with 373 additions and 3 deletions

13
Common/CommandRegistry.cs Normal file
View File

@ -0,0 +1,13 @@
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));
}
}