Liip\RMT\Command\ChangesCommand::execute PHP Method

execute() protected method

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $lastVersion = Context::get('version-persister')->getCurrentVersionTag();
        $noMerges = $input->getOption('exclude-merge-commits');
        if ($input->getOption('files')) {
            $output->writeln("Here is the list of files changed since <green>{$lastVersion}</green>:");
            $output->indent();
            $output->writeln(array_keys(Context::get('vcs')->getModifiedFilesSince($lastVersion)));
            return;
        }
        $output->writeln("Here is the list of changes since <green>{$lastVersion}</green>:");
        $output->indent();
        $output->writeln(Context::get('vcs')->getAllModificationsSince($lastVersion, false, $noMerges));
    }
ChangesCommand