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

use Composer\Console\Application;
use DTL\WhatChanged\Command\WhatChangedCommand;
use DTL\WhatChanged\WhatChangedContainerFactory;


require __DIR__ . '/../vendor/autoload.php';

$factory = new WhatChangedContainerFactory([
    'lock_path' => getcwd() . '/composer.lock',
    'compare_lock_path' => __DIR__ . '/../example/example.lock',
    'cache_path' => __DIR__ . '/../example/cache',
]);
$container = $factory->create();

$application = new Application();
$application->add(new WhatChangedCommand($factory));
$application->run();
