Skip to content

Commit 3657b28

Browse files
committed
improve formatting
1 parent d0a0be9 commit 3657b28

File tree

4 files changed

+13
-6
lines changed

4 files changed

+13
-6
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All notable changes to `phpunit-watcher` will be documented in this file
44

5+
## 1.3.1 - 2017-08-05
6+
7+
- improved readability of manual
8+
59
## 1.3.0 - 2017-08-05
610

711
- added desktop notifications

src/ConsoleApplication.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class ConsoleApplication extends Application
88
{
99
public function __construct()
1010
{
11-
parent::__construct('PHPUnit Watcher', '1.3.0');
11+
parent::__construct('PHPUnit Watcher', '1.3.1');
1212

1313
$this->add(new WatcherCommand());
1414
}

src/Screens/Phpunit.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,11 @@ protected function displayManual()
8787
{
8888
$this->terminal
8989
->emptyLine()
90-
->write('Press a to run all tests.')
91-
->write('Press t to filter by test name.')
92-
->write('Press p to filter by file name.')
93-
->write('Press q to quit the watcher.')
94-
->write('Press Enter to trigger a test run.');
90+
->write('<dim>Press </dim>a<dim> to run all tests.</dim>')
91+
->write('<dim>Press </dim>t<dim> to filter by test name.</dim>')
92+
->write('<dim>Press </dim>p<dim> to filter by file name.</dim>')
93+
->write('<dim>Press </dim>q<dim> to quit the watcher.</dim>')
94+
->write('<dim>Press </dim>Enter<dim> to trigger a test run.</dim>');
9595

9696
return $this;
9797
}

src/Terminal.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ public function write(string $message = '', $level = null)
6363

6464
$formattedMessage = (new OutputFormatter(true))->format($message);
6565

66+
$formattedMessage = str_replace('<dim>', "\e[2m", $formattedMessage);
67+
$formattedMessage = str_replace('</dim>', "\e[22m", $formattedMessage);
68+
6669
$this->io->writeln($formattedMessage);
6770

6871
return $this;

0 commit comments

Comments
 (0)