Example #1
0
 public function getFrontend()
 {
     $frontend = Mage_Connect_Frontend::getInstance('CLI');
     Mage_Connect_Command::setFrontendObject($frontend);
     return $frontend;
 }
Example #2
0
 /**
  * Output error
  * @param string $command
  * @param string $message
  * @return void
  */
 public function doError($command, $message)
 {
     parent::doError($command, $message);
     $this->writeln("Error: ");
     $this->writeln("{$command}: {$message}");
 }