From 1c823000e7e811d5918f04ec8ce2fdbf85d0b317 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Romani=CC=81?= Date: Tue, 9 Dec 2014 16:23:56 +0100 Subject: [PATCH] improve hit command, better push behaviour & help usage --- Command/HitCommand.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Command/HitCommand.php b/Command/HitCommand.php index 997840d..a66ac51 100644 --- a/Command/HitCommand.php +++ b/Command/HitCommand.php @@ -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 @@ -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', @@ -76,7 +75,7 @@ protected function configure() ) ->setHelp( <<cypress:git:hit 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. +cypress:git:hit 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 ); } @@ -98,7 +97,7 @@ protected function execute(InputInterface $input, OutputInterface $output) ); if ($input->getOption('no-push')) { $output->writeln( - '--no-push option enabled (this option disable push to remote repository feature)' + '--no-push option enabled (this option disable push to remotes)' ); }