-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdais
More file actions
executable file
·23 lines (16 loc) · 724 Bytes
/
Copy pathdais
File metadata and controls
executable file
·23 lines (16 loc) · 724 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env php
<?php
use Dais\PlatformShFacade;
use Dais\WaitCommand;
require __DIR__ . '/vendor/autoload.php';
$app = new Silly\Edition\PhpDi\Application('Dais', '@git-version@');
$container = $app->getContainer();
$container->set(PlatformShFacade::class, DI\factory([PlatformShFacade::class, 'fromEnv']));
$app->command('wait [--s|sha=] [--p|pr-number=] [files]*', 'Dais\\WaitCommand')
->descriptions('Wait for Platform.sh PR environment to be ready', [
'--sha' => 'SHA of commit to wait for on environment',
'--pr-number' => 'Pull request number, determines environment to wait on',
'files' => 'Files to replace URL into'
]);
$app->setDefaultCommand('wait', true);
$app->run();