Skip to content

Commit 6d5f03f

Browse files
committed
Defaults the tree command to show the structure of the dist package
1 parent acbc375 commit 6d5f03f

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

src/Commands/TreeCommand.php

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -83,17 +83,13 @@ protected function execute(InputInterface $input, OutputInterface $output): int
8383
return Command::SUCCESS;
8484
}
8585

86-
if ($showDistPackageTree) {
87-
$verboseOutput = '+ Showing flat structure of dist package.';
88-
$output->writeln($verboseOutput, OutputInterface::VERBOSITY_VERBOSE);
89-
90-
$output->writeln('Package: <info>' . $this->getPackageName() . '</info>');
91-
$output->write($this->tree->getTreeForDistPackage($this->directoryToOperateOn));
86+
$verboseOutput = '+ Showing flat structure of dist package.';
87+
$output->writeln($verboseOutput, OutputInterface::VERBOSITY_VERBOSE);
9288

93-
return Command::SUCCESS;
94-
}
89+
$output->writeln('Package: <info>' . $this->getPackageName() . '</info>');
90+
$output->write($this->tree->getTreeForDistPackage($this->directoryToOperateOn));
9591

96-
return Command::FAILURE;
92+
return Command::SUCCESS;
9793
}
9894

9995
protected function getPackageName(): string

0 commit comments

Comments
 (0)