Browse Source

Console ModuleController install colors

master
Egorka 6 years ago
parent
commit
d72bc9dc16
  1. 2
      console/controllers/ModuleController.php

2
console/controllers/ModuleController.php

@ -62,6 +62,8 @@ class ModuleController extends Controller
{
$path = \Yii::getAlias('@common/modules/' . $name);
echo ConsoleColor::log('Installing module: ', 'yellow') . ConsoleColor::log($name, 'white') . PHP_EOL;
// check exists
if (file_exists($path)) {
echo ConsoleColor::log('Module ' . $name . ' already exists', 'red') . PHP_EOL;

Loading…
Cancel
Save