src/Robo/Common/IO.php
protected function askRequired($message) {
    $question = new Question($this->formatQuestion($message));
    $question->setValidator(function ($answer) {
      if (empty($answer)) {
        throw new \RuntimeException(
          'You must enter a value!'
        );
      }

      return $answer;
    });
    return $this->doAsk($question);
  }
protected function askRequired($message) {
    $question = new Question($this->formatQuestion($message));
    $question->setValidator(function ($answer) {
      if (empty($answer)) {
        throw new \RuntimeException(
          'You must enter a value!'
        );
      }

      return $answer;
    });
    return $this->doAsk($question);
  }
protected function askRequired ( $ message ) { $ question = new Question ( $ this -> formatQuestion ( $ message ) ) ; $ question -> setValidator ( function ( $ answer ) { if ( empty ( $ answer ) ) { throw new \ RuntimeException ( 'You must enter a value!' ) ; } return $ answer ; } ) ; return $ this -> doAsk ( $ question ) ; }
Asks a required question.

@param string $message
The question text.

@return string
The response.
Asks a required question .