console 632 Bytes
Newer Older
1
#!/usr/bin/env php
Timothy J Warren committed
2
<?php declare(strict_types=1);
3

4
// Set up autoloader for third-party dependencies
5
require_once __DIR__ . '/vendor/autoload.php';
6 7

use Aviat\AnimeClient\Command;
8
use ConsoleKit\Console;
9 10 11

$_SERVER['HTTP_HOST'] = 'localhost';

12
// -----------------------------------------------------------------------------
13
// Start console script
14
// -----------------------------------------------------------------------------
15 16
try
{
17
	(new Console([
18
		'cache:clear' => Command\CacheClear::class,
19 20
		'cache:refresh' => Command\CachePrime::class,
		'lists:sync' => Command\SyncLists::class,
21 22 23 24 25 26
	]))->run();
}
catch (\Exception $e)
{

}
27