-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sara McCutcheon
committed
Sep 8, 2016
1 parent
b588e6b
commit 1cad5ed
Showing
9 changed files
with
196 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,20 @@ | ||
#!/usr/bin/env php | ||
<?php | ||
|
||
require __DIR__ . '/../vendor/autoload.php'; | ||
|
||
use Pantheon\Terminus\Runner; | ||
$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'; | ||
} else if (file_exists(__DIR__ . '/../../autoload.php')) { | ||
include_once __DIR__ . '/../../autoload.php'; | ||
} | ||
} | ||
|
||
$runner = new Runner(); | ||
$runner->run(); | ||
use Pantheon\Terminus\Terminus; | ||
|
||
$terminus = new Terminus(); | ||
$status_code = $terminus->run($_SERVER['argv']); | ||
exit($status_code); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.