/**
  * Getting description when command empty
  *
  * @return string
  * @author Sergey Startsev
  */
 protected function getDescription()
 {
     $files = sfFinder::type('file')->name('*.*')->in(afStudioUtil::getRootDir() . '/batch/');
     foreach ($files as $file) {
         $baseFiles[] = basename($file);
     }
     $result = $this->render('../batch/<file>') . afsRenderConsoleCommand::render('<b>Usage:</b> batch "file"<br><b>Found batches:</b> ' . implode('; ', $baseFiles), array('class' => 'afStudio_result_command'));
     return $result;
 }
 /**
  * Getting description
  *
  * @return string
  * @author Sergey Startsev
  */
 public function getDescription()
 {
     $rows = array("Logged as {$this->getWhoami()} on {$this->getUname()}", str_repeat("-", 20), "Current working directory : {$this->getPwd()}", "Commands Available :", "<strong>" . $this->getCommands(false) . "</strong>", "Symfony commands can be run by prefixing with sf<br />Example: sf cc ( clear cache )", "AppFlower Studio tasks commands can be run by prefixing with afs<br />Example: afs fix-perms ( fixes the permissions needed by the Studio )", str_repeat("-", 20));
     $result = array();
     foreach ($rows as $row) {
         $result[] = afsRenderConsoleCommand::render($row);
     }
     return $result;
 }
 /**
  * Delegate render to afsRenderConsoleCommand class
  *
  * @param string $content 
  * @param array $attributes 
  * @param string $tag 
  * @return string
  * @author Sergey Startsev
  */
 protected function render($content, array $attributes = array('class' => 'afStudio_command_user'), $tag = afsRenderConsoleCommand::DEFAULT_TAG)
 {
     return afsRenderConsoleCommand::render("{$this->getPrompt()}{$content}", $attributes, $tag);
 }