refactor(commands): reorganize OpenAPI and Services generation commands into a new namespace for better structure; remove old command files
This commit is contained in:
@@ -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 @@ class OpenApi extends Command
|
|||||||
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
Reference in New Issue
Block a user