Skip to content

Commit bcde514

Browse files
Merge pull request #92 from TheDragonCode/3.x
Added captions
2 parents 6ec0b0d + 4880e69 commit bcde514

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

src/Processors/Migrate.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,15 @@ class Migrate extends Processor
1818
public function handle(): void
1919
{
2020
$this->ensureRepository();
21+
$this->showCaption();
2122
$this->runActions($this->getCompleted());
2223
}
2324

25+
protected function showCaption(): void
26+
{
27+
$this->notification->info('Launching Actions');
28+
}
29+
2430
protected function ensureRepository(): void
2531
{
2632
$this->runCommand(Names::INSTALL, [

src/Processors/Rollback.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ public function handle(): void
2121
if ($actions = $this->getActions($this->options->step)) {
2222
$this->fireEvent(ActionStarted::class, 'down');
2323

24+
$this->showCaption();
2425
$this->run($actions);
2526

2627
$this->fireEvent(ActionEnded::class, 'down');
@@ -31,6 +32,11 @@ public function handle(): void
3132
$this->fireEvent(NoPendingActions::class, 'down');
3233
}
3334

35+
protected function showCaption(): void
36+
{
37+
$this->notification->info('Rollback Actions');
38+
}
39+
3440
protected function run(array $actions): void
3541
{
3642
foreach ($actions as $row) {

src/Processors/Status.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,16 @@ public function handle(): void
3131
}
3232

3333
$this->showCaption();
34+
$this->showHeaders();
3435
$this->showStatus($files, $completed);
3536
}
3637

3738
protected function showCaption(): void
39+
{
40+
$this->notification->info('Show Status');
41+
}
42+
43+
protected function showHeaders(): void
3844
{
3945
$this->notification->twoColumn($this->columnName, $this->columnStatus);
4046
}

0 commit comments

Comments
 (0)