-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSummaryTheme.php
More file actions
38 lines (31 loc) · 990 Bytes
/
SummaryTheme.php
File metadata and controls
38 lines (31 loc) · 990 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
declare(strict_types=1);
namespace Steevanb\ParallelProcess\Console\Application\Theme;
use Steevanb\ParallelProcess\Process\ProcessInterfaceCollection;
use Symfony\Component\Console\Output\OutputInterface;
class SummaryTheme extends DefaultTheme
{
#[\Override]
public function outputStart(OutputInterface $output, ProcessInterfaceCollection $processes): static
{
$output->writeln(
'Starting <info>'
. $processes->count()
. '</info> process'
. ($processes->count() !== 1 ? 'es' : null)
. '...'
);
$this->writeBufferedLines($output);
return $this;
}
#[\Override]
public function outputProcessesState(OutputInterface $output, ProcessInterfaceCollection $processes): static
{
return $this;
}
#[\Override]
public function resetOutput(OutputInterface $output, ProcessInterfaceCollection $processes): static
{
return $this;
}
}