#!/usr/bin/env php
<?php
if (file_exists(__DIR__ . '/../vendor/autoload.php')) {
require __DIR__ . '/../vendor/autoload.php';
} elseif (file_exists(__DIR__ . '/../../../autoload.php')) {
require __DIR__ . '/../../../autoload.php';
} else {
fwrite(STDERR,
'You must set up the project dependencies using `composer install`' . PHP_EOL
);
exit(1);
}
use Hephaestus\Console\InitCommand;
use Symfony\Component\Console\Application;
$application = new Application('Hephaestus CLI', '1.0.0');
$application->add(new InitCommand());
$application->run();
|