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

require_once __DIR__ . DIRECTORY_SEPARATOR . 'Bootstrap.php';

use Gerrie\Command\SetupDatabaseCommand;
use Gerrie\Command\CrawlCommand;
use Gerrie\Command\CheckCommand;
use Gerrie\Command\ListProjectsCommand;
use Symfony\Component\Console\Application;

// Use extended version of ArgvInput,
// because we need more functionality than offered by ArgvInput ;)
$argvInputExtended = new Gerrie\Component\Console\ArgvInputExtended();

$application = new Application('Gerrie', '0.2.0-dev');
$application->add(new SetupDatabaseCommand());
$application->add(new CrawlCommand());
$application->add(new CheckCommand());
$application->add(new ListProjectsCommand());
$application->run($argvInputExtended);