for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @category Library
* @license MIT http://opensource.org/licenses/MIT
* @link https://github.com/emlynwest/changelog
*/
namespace ChangeLog\Console;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
* Converts a release between formats.
class Convert extends AbstractCommand
{
* @return string
* @codeCoverageIgnore
public function getDescription(): string
return "Converts a release between formats.\n" .
"Uses the global input, parser, renderer and output flags for processing.";
}
* Reads and writes the log to covert the format.
*
* @param InputInterface $input
* @param OutputInterface $output
public function execute(InputInterface $input, OutputInterface $output): int
parent::execute($input, $output);
$log = $this->changeLog->parse();
$this->changeLog->write($log);
return Command::SUCCESS;