public function writeSelectPrompt($message, &$options)
    {
        $this->writeLine();

        // translate options
        foreach ($options as $optionKey => $optionValue) {
            $options[$optionKey] = $this->translator->translate($optionValue);
        }

        // write prompt badge
        $this->writeBadge('badge_pick', Color::RED);

        // output prompt
        $prompt = new Select(
            $this->translator->translate($message),
            $options,
            false,
            false
        );

        $answer = $prompt->show();

        $this->writeLine();

        return strtolower($answer);
    }
public function writeSelectPrompt($message, &$options)
    {
        $this->writeLine();

        // translate options
        foreach ($options as $optionKey => $optionValue) {
            $options[$optionKey] = $this->translator->translate($optionValue);
        }

        // write prompt badge
        $this->writeBadge('badge_pick', Color::RED);

        // output prompt
        $prompt = new Select(
            $this->translator->translate($message),
            $options,
            false,
            false
        );

        $answer = $prompt->show();

        $this->writeLine();

        return strtolower($answer);
    }
public function writeSelectPrompt ( $ message , & $ options ) { $ this -> writeLine ( ) ; // translate options foreach ( $ options as $ optionKey => $ optionValue ) { $ options [ $ optionKey ] = $ this -> translator -> translate ( $ optionValue ) ; } // write prompt badge $ this -> writeBadge ( 'badge_pick' , Color :: RED ) ; // output prompt $ prompt = new Select ( $ this -> translator -> translate ( $ message ) , $ options , false , false ) ; $ answer = $ prompt -> show ( ) ; $ this -> writeLine ( ) ; return strtolower ( $ answer ) ; }
Write a customizable prompt

@param $message
@param $options

@return string
Write a customizable prompt