A record in the command registration system. Pairs a CommandDescriptor with its handler and Guid registration id, plus flags for capabilities, audit recording, module execution context and whether the command is lifecycle control.
namespace SboxSuperuser.Engine.Commands;
internal sealed record RegisteredCommand( CommandDescriptor Descriptor, CommandHandler Handler, Guid RegistrationId )
{
internal CommandCapabilities Capabilities { get; init; } = CommandCapabilities.Empty;
internal bool RecordsAudit { get; init; } = true;
internal Modules.ModuleExecution Execution { get; init; }
internal bool IsLifecycleControl { get; init; }
}