Skip to content

Commit 871fc33

Browse files
committed
Removed target from the Compare command.
The target path is now obtained directly from the current working directory.
1 parent fa67452 commit 871fc33

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/PHPSemVerCheckerGit/Console/Command/CompareCommand.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ protected function configure()
2323
->setName('compare')
2424
->setDescription('Compare a set of files to determine what semantic versioning change needs to be done')
2525
->setDefinition([
26-
new InputArgument('target', InputArgument::REQUIRED, 'Directory where you git repository is located (ex my-test)'),
2726
new InputArgument('before', InputArgument::REQUIRED, 'A branch/tag/commit to check'),
2827
new InputArgument('after', InputArgument::REQUIRED, 'A branch/tag/commit to against'),
2928
new InputArgument('source-before', InputArgument::REQUIRED, 'A directory to check (ex my-test/src)'),
@@ -36,7 +35,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
3635
{
3736
$startTime = microtime(true);
3837

39-
$target = $input->getArgument('target');
38+
$target = getcwd();
4039
$commitBefore = $input->getArgument('before');
4140
$commitAfter = $input->getArgument('after');
4241
$sourceBefore = $input->getArgument('source-before');

0 commit comments

Comments
 (0)