-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcircle
More file actions
executable file
·24 lines (20 loc) · 753 Bytes
/
circle
File metadata and controls
executable file
·24 lines (20 loc) · 753 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env php
<?php
use Symfony\Component\Console\Application;
// Require the autoloader, we need this crazyness for global installations.
foreach ([__DIR__ . '/../../autoload.php', __DIR__ . '/../vendor/autoload.php', __DIR__ . '/vendor/autoload.php'] as $file) {
if (file_exists($file)) {
require_once $file;
break;
}
}
require_once __DIR__ . '/services.php';
require_once __DIR__ . '/events.php';
// Setup the app.
$app = new Application();
$commands = ['Status', 'Projects', 'Retry', 'Progress', 'SshKey', 'Build', 'Cancel'];
foreach ($commands as $command) {
$class = sprintf('Circle\Command\%sCommand', $command);
$app->add(new $class($container['circle'], $container['config'], $container['dispatcher']));
}
$app->run();