eveseat/installer

View on GitHub
bin/seat

Summary

Maintainability
Test Coverage
#!/usr/bin/env php
<?php

// Search for the autoloader.
if (file_exists(__DIR__ . '/../../autoload.php')) {

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

} elseif (file_exists(__DIR__ . '/../vendor/autoload.php')) {

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

} else {

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

// Init the app.
$app = new Symfony\Component\Console\Application('SeAT Installer', '@package_version@');

// Add the commands.

// Updaters
$app->add(new \Seat\Installer\Commands\Update\SelfCommand);
$app->add(new \Seat\Installer\Commands\Update\SeatCommand);

// Installers
$app->add(new \Seat\Installer\Commands\Install\Production);
$app->add(new \Seat\Installer\Commands\Install\Development);

// Helper Commands
$app->add(new \Seat\Installer\Commands\Where);
$app->add(new \Seat\Installer\Commands\Run);

// Diagnostics
$app->add(new \Seat\Installer\Commands\Diagnose);

// Make
$app->add(new \Seat\Installer\Commands\Make\Package);


$app->run();