/** * @param \Robo\Result|\Robo\Contract\TaskInterface $result * @param \Consolidation\AnnotatedCommand\CommandData $commandData * * @return null|\Robo\Result */ public function process($result, CommandData $commandData) { if ($result instanceof TaskInterface) { try { return $result->run(); } catch (\Exception $e) { return Result::fromException($result, $e); } } }