mirror of
https://github.com/opdavies/gmail-filter-builder.git
synced 2025-02-02 16:58:56 +00:00
16 lines
500 B
PHP
Executable file
16 lines
500 B
PHP
Executable file
<?php
|
|
|
|
use Opdavies\GmailFilterBuilder\Console\Command\GenerateCommand;
|
|
use Symfony\Component\Console\Application;
|
|
|
|
if (file_exists(__DIR__.'/../vendor/autoload.php')) {
|
|
require_once __DIR__.'/../vendor/autoload.php';
|
|
} elseif (file_exists(__DIR__.'/../../../autoload.php')) {
|
|
require_once __DIR__.'/../../../autoload.php';
|
|
}
|
|
|
|
$application = new Application();
|
|
$application->add(new GenerateCommand());
|
|
$application->setDefaultCommand(GenerateCommand::getDefaultName());
|
|
$application->run();
|