protected function execute(InputInterface $input, OutputInterface $output)
{
$clientFactory = new Client\Factory();
$client = $clientFactory->createClient();
$getLinks = $client->getCommand('GetLinksBySubreddit', ['subreddit' => 'programming']);
$links = $getLinks->execute();
foreach ($links as $link) {
$output->writeln($link->title);
}
}