gmail-filter-builder/bin/generate-filters
Oliver Davies bbc13672f0 Fix paths
2018-01-04 13:16:54 +00:00

16 lines
383 B
PHP
Executable file

#!/usr/bin/env php
<?php
use Opdavies\GmailFilterBuilder\Builder;
if (file_exists(__DIR__.'/../../../../filters.php')) {
$filters = require(__DIR__.'/../../../../filters.php');
} elseif (file_exists(__DIR__.'/../filters.php')) {
$filters = require(__DIR__.'/../filters.php');
} else {
throw new \Exception('No filters.php file found.');
}
echo new Builder($filters);