Skip to content

Commit

Permalink
Make commands lazy
Browse files Browse the repository at this point in the history
  • Loading branch information
ycs77 committed May 19, 2024
1 parent 9abc6a0 commit 1302040
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"ergebnis/json-printer": "^3.5",
"inertiajs/inertia-laravel": ">=1.0",
"laravel/framework": ">=11.0",
"laravel/prompts": "^0.1"
"laravel/prompts": "^0.1",
"symfony/console": "^7.0"
},
"require-dev": {
"laravel/pint": "^1.13"
Expand Down
2 changes: 2 additions & 0 deletions src/Commands/IdeHelperCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
namespace Inertia\Commands;

use Illuminate\Console\Command;
use Symfony\Component\Console\Attribute\AsCommand;

#[AsCommand(name: 'inertia:ide-helper')]
class IdeHelperCommand extends Command
{
/**
Expand Down
2 changes: 2 additions & 0 deletions src/Commands/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@
use Illuminate\Support\Composer;
use Illuminate\Support\Facades\Process;
use Inertia\Support\NodePackageManager;
use Symfony\Component\Console\Attribute\AsCommand;

use function Laravel\Prompts\multiselect;
use function Laravel\Prompts\select;

#[AsCommand(name: 'inertia:install')]
class InstallCommand extends Command
{
/**
Expand Down
2 changes: 2 additions & 0 deletions src/Commands/UiCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@

use Illuminate\Console\Command;
use InvalidArgumentException;
use Symfony\Component\Console\Attribute\AsCommand;

#[AsCommand(name: 'inertia:ui')]
class UiCommand extends Command
{
/**
Expand Down

0 comments on commit 1302040

Please sign in to comment.