Acacha\Llum\Console\InitCommand::askGithubToken PHP Method

askGithubToken() public method

public askGithubToken ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
    public function askGithubToken(InputInterface $input, OutputInterface $output)
    {
        $question = new ConfirmationQuestion('<info>Do you want to use our assistant to obtain token via Github API (Y/n)? </info>', true);
        if ($this->getHelper('question')->ask($input, $output, $question)) {
            $this->github_token = $this->api->getPersonalToken($this->github_username, $this->askGithubPassword($input, $output));
        }
    }