public function chooseEnvironmentVariable($key, $question = null, array $choices)
    {
        $question = is_null($question) ? 'Set a value for '.$key.':' : $question;

        $currentValue = env($key);
        if (! in_array($currentValue, $choices)) {
            array_unshift($choices, $currentValue);
        }

        $value = $this->choice($question, $choices, array_search($currentValue, $choices));

        $this->writeEnvironmentVariable($key, $value);
    }