forked from lucidarch/lucid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lucid
executable file
·47 lines (40 loc) · 1.67 KB
/
lucid
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/usr/bin/env php
<?php
if (file_exists('./vendor/autoload.php')) {
require './vendor/autoload.php';
} else if(file_exists(__DIR__.'/vendor/autoload.php')) {
require __DIR__.'/vendor/autoload.php';
} else {
require __DIR__.'/../../../bootstrap/autoload.php';
}
if (file_exists('./bootstrap/app.php')) {
$laravel = require'./bootstrap/app.php';
} else {
$laravel = require __DIR__.'/../../../bootstrap/app.php';
}
$commands = [
new Lucid\Console\Commands\InitMicroCommand(),
new Lucid\Console\Commands\InitMonolithCommand(),
new Lucid\Console\Commands\ChangeSourceNamespaceCommand(),
new Lucid\Console\Commands\JobMakeCommand(),
new Lucid\Console\Commands\JobDeleteCommand(),
new Lucid\Console\Commands\ServiceMakeCommand(),
new Lucid\Console\Commands\ServiceDeleteCommand(),
new Lucid\Console\Commands\FeatureMakeCommand(),
new Lucid\Console\Commands\FeatureDeleteCommand(),
new Lucid\Console\Commands\ControllerMakeCommand(),
new Lucid\Console\Commands\MigrationMakeCommand(),
new Lucid\Console\Commands\ServicesListCommand(),
new Lucid\Console\Commands\FeaturesListCommand(),
new Lucid\Console\Commands\ModelMakeCommand(),
new Lucid\Console\Commands\ModelDeleteCommand(),
new Lucid\Console\Commands\RequestMakeCommand(),
new Lucid\Console\Commands\RequestDeleteCommand(),
new Lucid\Console\Commands\PolicyMakeCommand(),
new Lucid\Console\Commands\PolicyDeleteCommand(),
new Lucid\Console\Commands\OperationMakeCommand(),
new Lucid\Console\Commands\OperationDeleteCommand(),
];
$app = new Symfony\Component\Console\Application('Lucid', '1.0.0');
array_walk($commands, [$app, 'add']);
$app->run();