for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Conveyor package.
*
* (c) Jeroen Fiege <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Webcreate\Conveyor\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
class VersionsCommand extends AbstractCommand
{
protected function configure()
$this
->setName('versions')
->setDescription('List available versions')
;
}
protected function execute(InputInterface $input, OutputInterface $output)
$deploy = $this->getConveyor($input, $output, $this->getHelperSet());
$versions = $deploy->getVersions();
$output->writeln('<comment>Available versions:</comment>');
foreach ($versions as $version) {
$output->writeln(sprintf(' <info>%s</info> (<comment>%s</comment>)', $version->getName(), $version->getBuild()));
$output->writeln('');