Tristan 929b87e513
All checks were successful
continuous-integration/drone/push Build is passing
Add test day command for easier testing while developing
2023-12-03 14:34:35 +01:00

24 lines
581 B
PHP
Executable File

#!/usr/bin/env php
<?php
require __DIR__.'/vendor/autoload.php';
use NunoMaduro\Collision\Provider as CollisionProvider;
use Symfony\Component\Console\Application;
use trizz\AdventOfCode\Commands\ExecuteDay;
use trizz\AdventOfCode\Commands\Puzzle;
use trizz\AdventOfCode\Commands\TestDay;
(new CollisionProvider())->register();
$application = new Application('Advent of Code by trizz');
$application->add(new Puzzle());
$application->add(new ExecuteDay());
$application->add(new TestDay());
try {
$application->run();
} catch (Exception $e) {
echo $e->getMessage();
}