src/Robo/Hooks/CommandEventHook.php
public function skipDisabledCommands(ConsoleCommandEvent $event) {
    $command = $event->getCommand();
    if ($this->isCommandDisabled($command->getName())) {
      $event->disableCommand();
    }

    // @todo Transmit analytics on command execution. Do the same in status hook.
  }
public function skipDisabledCommands(ConsoleCommandEvent $event) {
    $command = $event->getCommand();
    if ($this->isCommandDisabled($command->getName())) {
      $event->disableCommand();
    }

    // @todo Transmit analytics on command execution. Do the same in status hook.
  }
public function skipDisabledCommands ( ConsoleCommandEvent $ event ) { $ command = $ event -> getCommand ( ) ; if ( $ this -> isCommandDisabled ( $ command -> getName ( ) ) ) { $ event -> disableCommand ( ) ; } // @todo Transmit analytics on command execution. Do the same in status hook. }
Disable any command listed in the `disable-target` config key.

@hook command-event *
Disable any command listed in the disable - target config key .