HummingBirdAnimeClient/console

34 lines
950 B
Plaintext
Raw Normal View History

#!/usr/bin/env php
2016-12-20 12:58:37 -05:00
<?php declare(strict_types=1);
// Set up autoloader for third-party dependencies
require_once __DIR__ . '/vendor/autoload.php';
use Aviat\AnimeClient\Command;
2018-01-31 15:44:48 -05:00
use ConsoleKit\Console;
$_SERVER['HTTP_HOST'] = 'localhost';
2017-04-17 16:13:36 -04:00
// -----------------------------------------------------------------------------
// Start console script
2017-04-17 16:13:36 -04:00
// -----------------------------------------------------------------------------
try
{
2018-01-31 15:44:48 -05:00
(new Console([
'cache:clear' => Command\CacheClear::class,
2018-01-31 15:44:48 -05:00
'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,
2018-09-27 16:45:12 -04:00
'lists:sync' => Command\SyncLists::class,
'mal_id:check' => Command\MALIDCheck::class,
]))->run();
}
catch (\Exception $e)
{
}