}
}
}
$util->consoleLog(str_pad($theActionName, $charCountActionName + 5) . "[0;28m" . $theActionDescription, 'green');
}
}
}
closedir($handle);
}
}
public function getArguments()
{
return $this->arguments;
}
public function getConsole()
{
return $this->console;
}
}
try {
$cli = new Cli($argv);
$arguments = $cli->getArguments();
if (0 === count($arguments)) {
$cli->readTasks();
} else {
$console = $cli->getConsole();
$console->handle($arguments);
}
} catch (\Phalcon\Exception $e) {
echo $e->getMessage();
}