src/Robo/Hooks/InteractHook.php
public function interactConfigIdentical(
    InputInterface $input,
    OutputInterface $output,
    AnnotationData $annotationData
  ) {
    $cm_strategies = [
      'config-split',
      'core-only',
    ];
    if (in_array($this->getConfigValue('cm.strategy'), $cm_strategies) && $this->getInspector()->isDrupalInstalled()) {
      if (!$this->getInspector()->isActiveConfigIdentical()) {
        $this->logger->warning("The active configuration is not identical to the configuration in the export directory.");
        $this->logger->warning("This means that you have not exported all of your active configuration.");
        $this->logger->warning("Run <comment>drush cex</comment> to export the active config to the sync directory.");
        if ($this->input()->isInteractive()) {
          $this->logger->warning("Continuing will overwrite the active configuration.");
          $confirm = $this->confirm("Continue?");
          if (!$confirm) {
            throw new BltException("The active configuration is not identical to the configuration in the export directory.");
          }
        }
      }
    }
  }
public function interactConfigIdentical(
    InputInterface $input,
    OutputInterface $output,
    AnnotationData $annotationData
  ) {
    $cm_strategies = [
      'config-split',
      'core-only',
    ];
    if (in_array($this->getConfigValue('cm.strategy'), $cm_strategies) && $this->getInspector()->isDrupalInstalled()) {
      if (!$this->getInspector()->isActiveConfigIdentical()) {
        $this->logger->warning("The active configuration is not identical to the configuration in the export directory.");
        $this->logger->warning("This means that you have not exported all of your active configuration.");
        $this->logger->warning("Run <comment>drush cex</comment> to export the active config to the sync directory.");
        if ($this->input()->isInteractive()) {
          $this->logger->warning("Continuing will overwrite the active configuration.");
          $confirm = $this->confirm("Continue?");
          if (!$confirm) {
            throw new BltException("The active configuration is not identical to the configuration in the export directory.");
          }
        }
      }
    }
  }
public function interactConfigIdentical ( InputInterface $ input , OutputInterface $ output , AnnotationData $ annotationData ) { $ cm_strategies = [ 'config-split' , 'core-only' , ] ; if ( in_array ( $ this -> getConfigValue ( 'cm.strategy' ) , $ cm_strategies ) && $ this -> getInspector ( ) -> isDrupalInstalled ( ) ) { if ( ! $ this -> getInspector ( ) -> isActiveConfigIdentical ( ) ) { $ this -> logger -> warning ( "The active configuration is not identical to the configuration in the export directory." ) ; $ this -> logger -> warning ( "This means that you have not exported all of your active configuration." ) ; $ this -> logger -> warning ( "Run <comment>drush cex</comment> to export the active config to the sync directory." ) ; if ( $ this -> input ( ) -> isInteractive ( ) ) { $ this -> logger -> warning ( "Continuing will overwrite the active configuration." ) ; $ confirm = $ this -> confirm ( "Continue?" ) ; if ( ! $ confirm ) { throw new BltException ( "The active configuration is not identical to the configuration in the export directory." ) ; } } } } }
Prompts user to confirm overwrite of active config on blt setup.

@hook interact @interactConfigIdentical
Prompts user to confirm overwrite of active config on blt setup .