| @@ 73-83 (lines=11) @@ | ||
| 70 | $log[] = "Removed the cache directory: {$cacheDir}"; |
|
| 71 | } |
|
| 72 | ||
| 73 | if (count($log)) { |
|
| 74 | $output->writeln("Successfully cleaned up\n"); |
|
| 75 | ||
| 76 | foreach ($log as $line) { |
|
| 77 | $output->writeln("- {$line}"); |
|
| 78 | } |
|
| 79 | ||
| 80 | $output->writeln("\nRun <fg=green>site:generate</> to generate these files again."); |
|
| 81 | } else { |
|
| 82 | $output->writeln('No files were found'); |
|
| 83 | } |
|
| 84 | ||
| 85 | ||
| 86 | return; |
|
| @@ 96-103 (lines=8) @@ | ||
| 93 | $log[] = "Copied the public/ dir to {$publicDir}"; |
|
| 94 | } |
|
| 95 | ||
| 96 | if (count($log)) { |
|
| 97 | $output->writeln("Stitcher was successfully installed!\n"); |
|
| 98 | foreach ($log as $line) { |
|
| 99 | $output->writeln("- {$line}"); |
|
| 100 | } |
|
| 101 | } else { |
|
| 102 | $output->writeln("Stitcher has already been installed."); |
|
| 103 | } |
|
| 104 | ||
| 105 | return; |
|
| 106 | } |
|