#!/usr/bin/env php
<?php

foreach ([__DIR__ . '/../../../autoload.php', __DIR__ . '/../vendor/autoload.php'] as $file) {
    if (file_exists($file)) {
        require $file;
        define('RELEASE_TOOLS_ROOT', dirname($file) . DIRECTORY_SEPARATOR . '..');
        break;
    }
}

define('PROJECT_ROOT', getcwd());

$application = new Symfony\Component\Console\Application();

$application->add(new \DALTCORE\ReleaseTools\Modules\Init());
$application->add(new \DALTCORE\ReleaseTools\Modules\Prepare());
$application->add(new \DALTCORE\ReleaseTools\Modules\Changelog());
$application->add(new \DALTCORE\ReleaseTools\Modules\BuildChangelog());
$application->add(new \DALTCORE\ReleaseTools\Modules\Status());

$application->run();

