File tree Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Original file line number Diff line number Diff 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 , [
Original file line number Diff line number Diff 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 ) {
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments