src/Robo/Commands/Setup/WizardCommand.php
public function wizard($options = [
    'recipe' => InputOption::VALUE_REQUIRED,
  ]) {
    $recipe_filename = $options['recipe'];
    if ($recipe_filename) {
      $answers = $this->loadRecipeFile($recipe_filename);
    }
    else {
      $answers = $this->askForAnswers();
    }

    $this->say("<comment>You have entered the following values:</comment>");
    $this->printArrayAsTable($answers);
    $continue = $this->confirm("Continue?", TRUE);
    if (!$continue) {
      return 1;
    }

    $this->updateProjectYml($answers);

    if (!empty($answers['ci']['provider'])) {
      $this->invokeCommand("ci:{$answers['ci']['provider']}:init");
    }

    if ($answers['vm']) {
      $this->invokeCommand('vm', [
        [
          'no-boot' => '--no-interaction',
        ],
      ]);
    }
  }
public function wizard($options = [
    'recipe' => InputOption::VALUE_REQUIRED,
  ]) {
    $recipe_filename = $options['recipe'];
    if ($recipe_filename) {
      $answers = $this->loadRecipeFile($recipe_filename);
    }
    else {
      $answers = $this->askForAnswers();
    }

    $this->say("<comment>You have entered the following values:</comment>");
    $this->printArrayAsTable($answers);
    $continue = $this->confirm("Continue?", TRUE);
    if (!$continue) {
      return 1;
    }

    $this->updateProjectYml($answers);

    if (!empty($answers['ci']['provider'])) {
      $this->invokeCommand("ci:{$answers['ci']['provider']}:init");
    }

    if ($answers['vm']) {
      $this->invokeCommand('vm', [
        [
          'no-boot' => '--no-interaction',
        ],
      ]);
    }
  }
public function wizard ( $ options = [ 'recipe' => InputOption :: VALUE_REQUIRED , ] ) { $ recipe_filename = $ options [ 'recipe' ] ; if ( $ recipe_filename ) { $ answers = $ this -> loadRecipeFile ( $ recipe_filename ) ; } else { $ answers = $ this -> askForAnswers ( ) ; } $ this -> say ( "<comment>You have entered the following values:</comment>" ) ; $ this -> printArrayAsTable ( $ answers ) ; $ continue = $ this -> confirm ( "Continue?" , TRUE ) ; if ( ! $ continue ) { return 1 ; } $ this -> updateProjectYml ( $ answers ) ; if ( ! empty ( $ answers [ 'ci' ] [ 'provider' ] ) ) { $ this -> invokeCommand ( "ci:{$answers['ci']['provider']}:init" ) ; } if ( $ answers [ 'vm' ] ) { $ this -> invokeCommand ( 'vm' , [ [ 'no-boot' => '--no-interaction' , ] , ] ) ; } }
Wizard for setting initial configuration.

@command wizard
Wizard for setting initial configuration .