HummingBirdAnimeClient/console
Timothy J Warren f804cc66fb
All checks were successful
timw4mail/HummingBirdAnimeClient/pipeline/head This commit looks good
Add migration to create a link table between anime_sets and media
2020-04-22 17:52:07 -04:00

31 lines
790 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([
'clear:cache' => Command\CacheClear::class,
'clear:thumbnails' => Command\ClearThumbnails::class,
'refresh:cache' => Command\CachePrime::class,
'refresh:thumbnails' => Command\UpdateThumbnails::class,
'lists:sync' => Command\SyncLists::class,
'sync:lists' => Command\SyncLists::class
]))->run();
}
catch (\Exception $e)
{
}