src/Leevel/Console/Command.php
public function choice($question, array $choices, $defaults = null, $attempts = null, $multiple = null): string
    {
        $question = new ChoiceQuestion($question, $choices, $defaults);
        $question->setMaxAttempts($attempts)->setMultiselect($multiple);

        return $this->output->askQuestion($question);
    }
public function choice($question, array $choices, $defaults = null, $attempts = null, $multiple = null): string
    {
        $question = new ChoiceQuestion($question, $choices, $defaults);
        $question->setMaxAttempts($attempts)->setMultiselect($multiple);

        return $this->output->askQuestion($question);
    }
给用户一个问题组选择.
等待与用户进行交互，无法被测试.

@param string $question
@param array  $choices
@param string $defaults
@param mixed  $attempts
@param bool   $multiple

@return string
@codeCoverageIgnore