34 lines
950 B
PHP
Executable File
34 lines
950 B
PHP
Executable File
#!/usr/bin/env php
|
|
<?php declare(strict_types=1);
|
|
|
|
// Set up autoloader for third-party dependencies
|
|
require_once __DIR__ . '/vendor/autoload.php';
|
|
|
|
use Aviat\AnimeClient\Command;
|
|
use ConsoleKit\Console;
|
|
|
|
$_SERVER['HTTP_HOST'] = 'localhost';
|
|
|
|
// -----------------------------------------------------------------------------
|
|
// Start console script
|
|
// -----------------------------------------------------------------------------
|
|
try
|
|
{
|
|
(new Console([
|
|
'cache:clear' => Command\CacheClear::class,
|
|
'cache:refresh' => Command\CachePrime::class,
|
|
'clear:cache' => Command\CacheClear::class,
|
|
'clear:thumbnails' => Command\ClearThumbnails::class,
|
|
'refresh:cache' => Command\CachePrime::class,
|
|
'refresh:thumbnails' => Command\UpdateThumbnails::class,
|
|
'regenerate-thumbnails' => Command\UpdateThumbnails::class,
|
|
'lists:sync' => Command\SyncLists::class,
|
|
'mal_id:check' => Command\MALIDCheck::class,
|
|
]))->run();
|
|
}
|
|
catch (\Exception $e)
|
|
{
|
|
|
|
}
|
|
|