Added command plugin documentation and renamed subCommands to commands in api command code

This commit is contained in:
2024-07-19 15:05:20 +02:00
parent bf27a344e1
commit 7badcc333b
3 changed files with 198 additions and 4 deletions

View File

@@ -7,11 +7,11 @@ public partial class MycroForge
{
public partial class Api : Command, ISubCommandOf<MycroForge>
{
public Api(IEnumerable<ISubCommandOf<Api>> subCommands) :
public Api(IEnumerable<ISubCommandOf<Api>> commands) :
base("api", "API related commands")
{
foreach (var subCommandOf in subCommands)
AddCommand((subCommandOf as Command)!);
foreach (var command in commands)
AddCommand((command as Command)!);
}
}
}