feat: Dynamic command loader, default command with module registry
This commit is contained in:
13
Common/CommandRegistry.cs
Normal file
13
Common/CommandRegistry.cs
Normal 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));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user