Skip to content

Added captions #92

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/Processors/Migrate.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,15 @@ class Migrate extends Processor
public function handle(): void
{
$this->ensureRepository();
$this->showCaption();
$this->runActions($this->getCompleted());
}

protected function showCaption(): void
{
$this->notification->info('Launching Actions');
}

protected function ensureRepository(): void
{
$this->runCommand(Names::INSTALL, [
Expand Down
6 changes: 6 additions & 0 deletions src/Processors/Rollback.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public function handle(): void
if ($actions = $this->getActions($this->options->step)) {
$this->fireEvent(ActionStarted::class, 'down');

$this->showCaption();
$this->run($actions);

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

protected function showCaption(): void
{
$this->notification->info('Rollback Actions');
}

protected function run(array $actions): void
{
foreach ($actions as $row) {
Expand Down
6 changes: 6 additions & 0 deletions src/Processors/Status.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,16 @@ public function handle(): void
}

$this->showCaption();
$this->showHeaders();
$this->showStatus($files, $completed);
}

protected function showCaption(): void
{
$this->notification->info('Show Status');
}

protected function showHeaders(): void
{
$this->notification->twoColumn($this->columnName, $this->columnStatus);
}
Expand Down