protected function execute(InputInterface $input, OutputInterface $output)
{
/** @var GitHelper $gitHelper */
$gitHelper = $this->getHelper('git');
$remote = $input->getArgument('remote');
$branchName = $input->getArgument('branch_name');
if (null === $branchName) {
$branchName = $gitHelper->getActiveBranchName();
}
$gitHelper->syncWithRemote($remote, $branchName);
$this->getHelper('gush_style')->success(sprintf('Branch "%s" has been synced with remote "%s".', $branchName, $remote));
return self::COMMAND_SUCCESS;
}