mirror of
https://github.com/hauke68/Magallanes.git
synced 2026-08-28 10:08:56 +02:00
Changes on console feedback colors. Example of User Tasks.
This commit is contained in:
+9
-8
@@ -37,9 +37,13 @@ class Mage_Console
|
||||
return $this->_environment;
|
||||
}
|
||||
|
||||
public static function output($message)
|
||||
public static function output($message, $tabs = 1, $newLine = true)
|
||||
{
|
||||
echo $message;
|
||||
$output = str_repeat("\t", $tabs)
|
||||
. Mage_Console_Colors::color($message)
|
||||
. ($newLine ? PHP_EOL : '');
|
||||
|
||||
echo $output;
|
||||
}
|
||||
|
||||
public static function executeCommand($command)
|
||||
@@ -52,7 +56,7 @@ class Mage_Console
|
||||
}
|
||||
|
||||
public function run()
|
||||
{
|
||||
{
|
||||
$config = new Mage_Config;
|
||||
$config->loadEnvironment($this->getEnvironment());
|
||||
$config->loadSCM();
|
||||
@@ -64,12 +68,9 @@ class Mage_Console
|
||||
break;
|
||||
|
||||
case 'update';
|
||||
$config->loadCSM();
|
||||
$task = new Mage_Task_Update;
|
||||
$task->run($config);
|
||||
$task->run($config);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
define('PHP_TAB', "\t");
|
||||
}
|
||||
Reference in New Issue
Block a user