28 lines
698 B
Plaintext
Raw Permalink Normal View History

#!/usr/bin/env php
<?php
require __DIR__.'/vendor/autoload.php';
use NunoMaduro\Collision\Provider as CollisionProvider;
use Symfony\Component\Console\Application;
2023-12-03 20:19:35 +01:00
use trizz\AdventOfCode\Commands\AddDay;
2023-12-03 14:34:22 +01:00
use trizz\AdventOfCode\Commands\ExecuteDay;
use trizz\AdventOfCode\Commands\Puzzle;
use trizz\AdventOfCode\Commands\TestDay;
2022-11-29 19:52:02 +01:00
(new CollisionProvider())->register();
require_once __DIR__.'/src/bootstrap.php';
2022-11-29 19:52:02 +01:00
$application = new Application('Advent of Code by trizz');
$application->add(new Puzzle());
$application->add(new ExecuteDay());
$application->add(new TestDay());
2023-12-03 20:19:35 +01:00
$application->add(new AddDay());
2022-11-29 19:52:02 +01:00
try {
$application->run();
} catch (Exception $e) {
echo $e->getMessage();
}