src/Robo/Commands/Setup/WizardCommand.php
protected function askForAnswers() {
    $this->say("<info>Let's start by entering some information about your project.</info>");
    $answers['human_name'] = $this->askDefault("Project name (human readable):", $this->getConfigValue('project.human_name'));
    $default_machine_name = StringManipulator::convertStringToMachineSafe($answers['human_name']);
    $answers['machine_name'] = $this->askDefault("Project machine name:", $default_machine_name);
    $default_prefix = StringManipulator::convertStringToPrefix($answers['human_name']);
    $answers['prefix'] = $this->askDefault("Project prefix:", $default_prefix);

    $this->say("<info>Great. Now let's make some choices about how your project will be set up.</info>");
    $answers['vm'] = $this->confirm('Do you want to create a VM?');
    $ci = $this->confirm('Do you want to use Continuous Integration?');
    if ($ci) {
      $provider_options = [
        'pipelines' => 'Acquia Pipelines',
        'travis' => 'Travis CI',
      ];
      $answers['ci']['provider'] = $this->askChoice('Choose a Continuous Integration provider:', $provider_options, 'travis');
    }

    $cm = $this->confirm('Do you want use Drupal core configuration management?');
    if ($cm) {
      $strategy_options = [
        'config-split' => 'Config Split (recommended)',
        'features' => 'Features',
        'core-only' => 'Core only',
      ];
      $answers['cm']['strategy'] = $this->askChoice('Choose a configuration management strategy:', $strategy_options, 'config-split');
    }
    else {
      $answers['cm']['strategy'] = 'none';
    }

    $profile_options = [
      'lightning' => 'Lightning',
      'minimal' => 'Minimal',
      'standard' => 'Standard',
    ];
    $this->say("You may change the installation profile later.");
    $answers['profile'] = $this->askChoice('Choose an installation profile:', $profile_options, 'lightning');

    return $answers;
  }
protected function askForAnswers() {
    $this->say("<info>Let's start by entering some information about your project.</info>");
    $answers['human_name'] = $this->askDefault("Project name (human readable):", $this->getConfigValue('project.human_name'));
    $default_machine_name = StringManipulator::convertStringToMachineSafe($answers['human_name']);
    $answers['machine_name'] = $this->askDefault("Project machine name:", $default_machine_name);
    $default_prefix = StringManipulator::convertStringToPrefix($answers['human_name']);
    $answers['prefix'] = $this->askDefault("Project prefix:", $default_prefix);

    $this->say("<info>Great. Now let's make some choices about how your project will be set up.</info>");
    $answers['vm'] = $this->confirm('Do you want to create a VM?');
    $ci = $this->confirm('Do you want to use Continuous Integration?');
    if ($ci) {
      $provider_options = [
        'pipelines' => 'Acquia Pipelines',
        'travis' => 'Travis CI',
      ];
      $answers['ci']['provider'] = $this->askChoice('Choose a Continuous Integration provider:', $provider_options, 'travis');
    }

    $cm = $this->confirm('Do you want use Drupal core configuration management?');
    if ($cm) {
      $strategy_options = [
        'config-split' => 'Config Split (recommended)',
        'features' => 'Features',
        'core-only' => 'Core only',
      ];
      $answers['cm']['strategy'] = $this->askChoice('Choose a configuration management strategy:', $strategy_options, 'config-split');
    }
    else {
      $answers['cm']['strategy'] = 'none';
    }

    $profile_options = [
      'lightning' => 'Lightning',
      'minimal' => 'Minimal',
      'standard' => 'Standard',
    ];
    $this->say("You may change the installation profile later.");
    $answers['profile'] = $this->askChoice('Choose an installation profile:', $profile_options, 'lightning');

    return $answers;
  }
protected function askForAnswers ( ) { $ this -> say ( "<info>Let's start by entering some information about your project.</info>" ) ; $ answers [ 'human_name' ] = $ this -> askDefault ( "Project name (human readable):" , $ this -> getConfigValue ( 'project.human_name' ) ) ; $ default_machine_name = StringManipulator :: convertStringToMachineSafe ( $ answers [ 'human_name' ] ) ; $ answers [ 'machine_name' ] = $ this -> askDefault ( "Project machine name:" , $ default_machine_name ) ; $ default_prefix = StringManipulator :: convertStringToPrefix ( $ answers [ 'human_name' ] ) ; $ answers [ 'prefix' ] = $ this -> askDefault ( "Project prefix:" , $ default_prefix ) ; $ this -> say ( "<info>Great. Now let's make some choices about how your project will be set up.</info>" ) ; $ answers [ 'vm' ] = $ this -> confirm ( 'Do you want to create a VM?' ) ; $ ci = $ this -> confirm ( 'Do you want to use Continuous Integration?' ) ; if ( $ ci ) { $ provider_options = [ 'pipelines' => 'Acquia Pipelines' , 'travis' => 'Travis CI' , ] ; $ answers [ 'ci' ] [ 'provider' ] = $ this -> askChoice ( 'Choose a Continuous Integration provider:' , $ provider_options , 'travis' ) ; } $ cm = $ this -> confirm ( 'Do you want use Drupal core configuration management?' ) ; if ( $ cm ) { $ strategy_options = [ 'config-split' => 'Config Split (recommended)' , 'features' => 'Features' , 'core-only' => 'Core only' , ] ; $ answers [ 'cm' ] [ 'strategy' ] = $ this -> askChoice ( 'Choose a configuration management strategy:' , $ strategy_options , 'config-split' ) ; } else { $ answers [ 'cm' ] [ 'strategy' ] = 'none' ; } $ profile_options = [ 'lightning' => 'Lightning' , 'minimal' => 'Minimal' , 'standard' => 'Standard' , ] ; $ this -> say ( "You may change the installation profile later." ) ; $ answers [ 'profile' ] = $ this -> askChoice ( 'Choose an installation profile:' , $ profile_options , 'lightning' ) ; return $ answers ; }
Prompts the user for information.

@return array
An array of answers.
Prompts the user for information .