refactor(commands): reorganize OpenAPI and Services generation commands into a new namespace for better structure; remove old command files
This commit is contained in:
parent
201116746b
commit
93ec2f804b
3 changed files with 5 additions and 5 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Console\Commands;
|
namespace App\Console\Commands\Generate;
|
||||||
|
|
||||||
use Illuminate\Console\Command;
|
use Illuminate\Console\Command;
|
||||||
use Illuminate\Support\Facades\Process;
|
use Illuminate\Support\Facades\Process;
|
||||||
|
|
@ -18,7 +18,7 @@ public function handle()
|
||||||
echo "Generating OpenAPI documentation.\n";
|
echo "Generating OpenAPI documentation.\n";
|
||||||
// https://github.com/OAI/OpenAPI-Specification/releases
|
// https://github.com/OAI/OpenAPI-Specification/releases
|
||||||
$process = Process::run([
|
$process = Process::run([
|
||||||
'/var/www/html/vendor/bin/openapi',
|
'./vendor/bin/openapi',
|
||||||
'app',
|
'app',
|
||||||
'-o',
|
'-o',
|
||||||
'openapi.yaml',
|
'openapi.yaml',
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Console\Commands;
|
namespace App\Console\Commands\Generate;
|
||||||
|
|
||||||
use Illuminate\Console\Command;
|
use Illuminate\Console\Command;
|
||||||
use Illuminate\Support\Arr;
|
use Illuminate\Support\Arr;
|
||||||
use Symfony\Component\Yaml\Yaml;
|
use Symfony\Component\Yaml\Yaml;
|
||||||
|
|
||||||
class ServicesGenerate extends Command
|
class Services extends Command
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue