execute method

  1. @override
Future<CoreResult> execute(
  1. CoreCommand command
)
override

Execute command through the full executor pipeline.

Returns a CoreResult — always check CoreResult.ok before using CoreResult.data. On failure, CoreResult.error contains the structured CoreError envelope with {code, message, details, descriptor, recovery}.

Implementation

@override
Future<CoreResult> execute(final CoreCommand command) async {
  executedCommands.add(command);
  callLog.add('execute');
  return nextExecuteResult ?? CoreResult.success();
}