forked from lucidarch/console-laravel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lucid
executable file
·39 lines (32 loc) · 1.39 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
#!/usr/bin/env php
<?php
if (file_exists(getcwd().'/vendor/autoload.php')) {
require getcwd().'/vendor/autoload.php';
} else {
require getcwd().'/../../../bootstrap/autoload.php';
}
$laravel = require getcwd().'/bootstrap/app.php';
$commands = [
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 Console', '0.5.5');
array_walk($commands, [$app, 'add']);
$app->run();