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

use Cordo\Core\UI\Console\Command\InitCommand;
use Doctrine\DBAL\Tools\Console\Command\ImportCommand;
use Cordo\Core\UI\Console\Command\ModuleBuilderCommand;

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

// bootstapping
$app = require_once __DIR__ . '/bootstrap/app.php';

# register services and modules
$app->register();

$app->console->add(new ImportCommand());
$app->console->add(new ModuleBuilderCommand());
$app->console->add(new InitCommand($app->container));

$app->console->run();
