Pantheon\Terminus\Commands\ArtCommand::interact PHP Method

interact() public method

If the user does not specify the $name parameter, then we will prompt for it here.
public interact ( 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 interact(InputInterface $input, OutputInterface $output)
    {
        $available_art = $this->availableArt();
        $io = new SymfonyStyle($input, $output);
        $art_name = $input->getArgument('name');
        if (!$art_name) {
            $io->title('Available Art');
            $io->listing($available_art);
        }
    }