Skip to content

Commit

Permalink
improve hit command, better push behaviour & help usage
Browse files Browse the repository at this point in the history
  • Loading branch information
davidromani committed Dec 9, 2014
1 parent 7d6176e commit 1c82300
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Command/HitCommand.php
Expand Up @@ -12,7 +12,6 @@
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\Output;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Helper\ProgressHelper;

/**
* Class HitCommand
Expand Down Expand Up @@ -55,12 +54,12 @@ protected function configure()
),
)
)
->setDescription('Merge without fast forward from source to destination branch, tag destination branch and push to remote repository')
->setDescription('Merge without fast forward from source to destination branch, tag destination branch and push to all remotes')
->addOption(
'no-push',
null,
InputOption::VALUE_NONE,
'If set, the task won\'t push to remote repository'
'If set, the task won\'t push to remotes'
)
->addOption(
'fast-forward',
Expand All @@ -76,7 +75,7 @@ protected function configure()
)
->setHelp(
<<<EOT
<info>cypress:git:hit</info> combo command to merge without fast forward option from source to destination branch, tag destination branch and push to remote repository. Only apply fisrt repository, use --all option to apply all repositories. Use --no-push to commit only on your local repository. Apply --fast-forward to disable no fast forward merge option.
<info>cypress:git:hit</info> combo command to merge without fast forward option from source to destination branch, tag destination branch and push to all remotes. Only apply fisrt repository, use --all option to apply all repositories. Use --no-push to commit only on your local repository. Apply --fast-forward to disable no fast forward merge option.
EOT
);
}
Expand All @@ -98,7 +97,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
);
if ($input->getOption('no-push')) {
$output->writeln(
'<comment>--no-push option enabled (this option disable push to remote repository feature)</comment>'
'<comment>--no-push option enabled (this option disable push to remotes)</comment>'
);
}

Expand Down

0 comments on commit 1c82300

Please sign in to comment.