Skip to content

Commit

Permalink
Changed to using Robo's runner
Browse files Browse the repository at this point in the history
  • Loading branch information
Sara McCutcheon committed Sep 9, 2016
1 parent b588e6b commit 411ec1b
Show file tree
Hide file tree
Showing 9 changed files with 360 additions and 181 deletions.
20 changes: 17 additions & 3 deletions bin/terminus.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
#!/usr/bin/env php
<?php

require __DIR__ . '/../vendor/autoload.php';
$phar_path = \Phar::running(true);
if ($phar_path) {
include_once "$phar_path/vendor/autoload.php";
} else {
if (file_exists(__DIR__ . '/../vendor/autoload.php')) {
include_once __DIR__ . '/../vendor/autoload.php';
} elseif (file_exists(__DIR__ . '/../../autoload.php')) {
include_once __DIR__ . '/../../autoload.php';
}
}

use Pantheon\Terminus\Config;
use Pantheon\Terminus\Runner;
use Pantheon\Terminus\Terminus;

$runner = new Runner();
$runner->run();
$config = new Config();
$terminus = new Terminus('Terminus', $config->get('version'), $config);
$runner = new Runner(['application' => $terminus, 'config' => $config,]);
$status_code = $runner->run($_SERVER['argv']);
exit($status_code);

0 comments on commit 411ec1b

Please sign in to comment.