src/Robo/Hooks/InteractHook.php
public function interactExecuteUpdates(
    InputInterface $input,
    OutputInterface $output,
    AnnotationData $annotationData
  ) {
    if ($this->invokeDepth == 0
      && $input->getFirstArgument() != 'blt:update'
      && $input->getFirstArgument() != 'update'
      && !$this->getInspector()->isSchemaVersionUpToDate()) {
      $this->logger->warning("Your BLT schema is out of date.");
      if (!$input->isInteractive()) {
        $this->logger->warning("Run `blt blt:update` to update it.");
      }
      $confirm = $this->confirm("Would you like to run outstanding updates?");
      if ($confirm) {
        $this->invokeCommand('blt:update');
      }
    }
  }
public function interactExecuteUpdates(
    InputInterface $input,
    OutputInterface $output,
    AnnotationData $annotationData
  ) {
    if ($this->invokeDepth == 0
      && $input->getFirstArgument() != 'blt:update'
      && $input->getFirstArgument() != 'update'
      && !$this->getInspector()->isSchemaVersionUpToDate()) {
      $this->logger->warning("Your BLT schema is out of date.");
      if (!$input->isInteractive()) {
        $this->logger->warning("Run `blt blt:update` to update it.");
      }
      $confirm = $this->confirm("Would you like to run outstanding updates?");
      if ($confirm) {
        $this->invokeCommand('blt:update');
      }
    }
  }
public function interactExecuteUpdates ( InputInterface $ input , OutputInterface $ output , AnnotationData $ annotationData ) { if ( $ this -> invokeDepth == 0 && $ input -> getFirstArgument ( ) != 'blt:update' && $ input -> getFirstArgument ( ) != 'update' && ! $ this -> getInspector ( ) -> isSchemaVersionUpToDate ( ) ) { $ this -> logger -> warning ( "Your BLT schema is out of date." ) ; if ( ! $ input -> isInteractive ( ) ) { $ this -> logger -> warning ( "Run `blt blt:update` to update it." ) ; } $ confirm = $ this -> confirm ( "Would you like to run outstanding updates?" ) ; if ( $ confirm ) { $ this -> invokeCommand ( 'blt:update' ) ; } } }
Executes outstanding updates.

@hook interact *
Executes outstanding updates .