mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-06-19 21:38:16 +08:00

committed by
Patrik Svensson

parent
b6e0b2389a
commit
fde9ee04cf
@ -17,6 +17,12 @@ internal static class TypeRegistrarExtensions
|
||||
throw new InvalidOperationException("Command setting type cannot be null.");
|
||||
}
|
||||
|
||||
if (command.SettingsType is { IsAbstract: false, IsClass: true })
|
||||
{
|
||||
// Register the settings type
|
||||
registrar?.Register(command.SettingsType, command.SettingsType);
|
||||
}
|
||||
|
||||
if (command.CommandType != null)
|
||||
{
|
||||
registrar?.Register(command.CommandType, command.CommandType);
|
||||
|
Reference in New Issue
Block a user