Skip to content

Commit 11a0d40

Browse files
committed
add output example
1 parent 43af613 commit 11a0d40

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ Run the `breakpoint` command to check for **outdated major packages**:
5858
vendor/bin/jack breakpoint
5959
```
6060

61+
62+
63+
<img src="/docs/breakpoint-output.png" alt="Jack" width="400" align="center">
64+
65+
6166
<br>
6267

6368
If there are more than 5 major outdated packages, the **CI will fail**.

docs/breakpoint-output.png

40.1 KB
Loading

src/Command/BreakPointCommand.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,10 @@ protected function execute(InputInterface $input, OutputInterface $output): int
4343
$maxOutdatePackages = (int) $input->getOption('limit');
4444

4545
$symfonyStyle = new SymfonyStyle($input, $output);
46-
$symfonyStyle->title('Analyzing "composer.json" for major outdated packages');
46+
$symfonyStyle->writeln('<fg=green>Analyzing "composer.json" for major outdated packages</>');
4747

4848
$responseJsonContents = $this->composerOutdatedResponseProvider->provide();
4949

50-
$symfonyStyle->success('Done');
51-
$symfonyStyle->newLine();
52-
5350
$responseJson = Json::decode($responseJsonContents, true);
5451
if (! isset($responseJson[ComposerKey::INSTALLED_KEY])) {
5552
$symfonyStyle->success('All packages are up to date');

0 commit comments

Comments
 (0)