2018-01-10 17:39:00 +00:00
|
|
|
<?php
|
|
|
|
|
2018-01-10 23:52:22 +00:00
|
|
|
use Opdavies\GmailFilterBuilder\Console\Command\GenerateCommand;
|
2018-01-10 17:39:00 +00:00
|
|
|
use Symfony\Component\Console\Application;
|
|
|
|
|
2018-02-13 02:38:29 +00:00
|
|
|
if (file_exists(__DIR__.'/../vendor/autoload.php')) {
|
|
|
|
require_once __DIR__.'/../vendor/autoload.php';
|
2018-03-20 20:34:27 +00:00
|
|
|
} elseif (file_exists(__DIR__.'/../../../autoload.php')) {
|
2018-02-13 02:38:29 +00:00
|
|
|
require_once __DIR__.'/../../../autoload.php';
|
|
|
|
}
|
2018-01-10 17:39:00 +00:00
|
|
|
|
2023-12-13 07:36:22 +00:00
|
|
|
$application = new Application();
|
|
|
|
$application->add(new GenerateCommand());
|
2020-01-12 20:01:31 +00:00
|
|
|
$application->setDefaultCommand(GenerateCommand::getDefaultName());
|
2018-01-10 17:39:00 +00:00
|
|
|
$application->run();
|