Skip to content

Commit

Permalink
Now describes what oxrun-light is and has cache-clear added.
Browse files Browse the repository at this point in the history
  • Loading branch information
TumTum committed Sep 7, 2021
1 parent f8082aa commit 0dfdc56
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion src/Oxrun/Application/oxrun-light.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,34 @@

declare(strict_types=1);

$application = new \Symfony\Component\Console\Application('oxrun-light', '0.2');
namespace Oxrun\Application;

/**
* Class OxrunLight
* @package Oxrun\Application
*/
class OxrunLight extends \Symfony\Component\Console\Application
{
/**
* @inheritDoc
*/
public function getHelp()
{
$version = parent::getHelp();
return <<<TAG
$version
-----------------------------------------------------------------------
<comment> Is a light console line tool for OXID eSale.
These commands don't need an active OXID eSale database connection.</comment>
-----------------------------------------------------------------------
TAG;
}

}

$application = new OxrunLight('oxrun-light', '0.3');
$application->add(new \Oxrun\Command\Cache\ClearCommand());
$application->add(new \Oxrun\Command\Misc\RegisterCommand());
$application->add(new \Oxrun\Command\Misc\PhpstormMetadataCommand());
$application->add(new \Oxrun\Command\Misc\GenerateDocumentationCommand());
Expand Down

0 comments on commit 0dfdc56

Please sign in to comment.