Tristan 68583b1b84
All checks were successful
continuous-integration/drone/push Build is passing
Move solutions out of the source itself
2023-12-03 20:47:53 +01:00

28 lines
698 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\AddDay;
use trizz\AdventOfCode\Commands\ExecuteDay;
use trizz\AdventOfCode\Commands\Puzzle;
use trizz\AdventOfCode\Commands\TestDay;
(new CollisionProvider())->register();
require_once __DIR__.'/src/bootstrap.php';
$application = new Application('Advent of Code by trizz');
$application->add(new Puzzle());
$application->add(new ExecuteDay());
$application->add(new TestDay());
$application->add(new AddDay());
try {
$application->run();
} catch (Exception $e) {
echo $e->getMessage();
}