From 76877bb989bd2078220b6667053c09529cdffedb Mon Sep 17 00:00:00 2001 From: fokosun Date: Mon, 13 Nov 2023 22:38:28 -0500 Subject: [PATCH 1/2] update readme --- README.md | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 176e8fe..e693d7f 100644 --- a/README.md +++ b/README.md @@ -25,24 +25,24 @@ Lastly, add Artisan Chain Commands to the list of providers in `config/app` unde ## How to use You can chain multiple artisan commands with ease but there are a few commands that are not supported. See list below. -```text -'chain-commands' => 'Not allowed', -'db' => "This opens a REPL (Read, Evaluate, Print and Loop) environment.\nYou should not run this command with chain commands.", -'docs' => "This opens the Laravel documentation page in a browser window.\nYou should not run this command with chain commands.", -'docs 1' => "This opens the Laravel documentation page in a browser window.\nYou should not run this command with chain commands.", -'docs 2' => "This opens the Laravel documentation page in a browser window.\nYou should not run this command with chain commands.", -'docs -- search query' => "This opens the Laravel documentation page in a browser window.\nYou should not run this command with chain commands.", -'docs -- search query here' => "This opens the Laravel documentation page in a browser window.\nYou should not run this command with chain commands.", -'help' => "Displays help for a command.\nYou should not run this command with chain commands.", -'serve' => 'Not allowed', -'test' => 'Not allowed.', -'tinker' => "This opens a REPL (Read, Evaluate, Print and Loop) environment.\nYou should not run this command with chain commands.", -'vendor:publish' => "This is an interactive command.\nYou should not run this command with chain commands.", -'schedule:work' => "Starts the schedule worker.\nYou should not run this command with chain commands.", -'queue:work' => "Starts processing jobs on the queue as a daemon.\nYou should not run this command with chain commands.", -'queue:restart' => "Restarts queue worker daemons after their current job.\nYou should not run this command with chain commands.", -'queue:listen' => "Listens to a given queue.\nYou should not run this command with chain commands." -``` +| Ignored Command | Description | +|----------------------|------------------------------------------------------------------------------------------------------------------------| +| chain-commands | Not allowed | +| db | This opens a REPL (Read, Evaluate, Print and Loop) environment.\nYou should not run this command with chain commands. | +| docs | This opens the Laravel documentation page in a browser window.\nYou should not run this command with chain commands. | +| docs 1 | This opens the Laravel documentation page in a browser window.\nYou should not run this command with chain commands. | +| docs 2 | This opens the Laravel documentation page in a browser window.\nYou should not run this command with chain commands. | +| docs -- search query | This opens the Laravel documentation page in a browser window.\nYou should not run this command with chain commands.. | +| help | Displays help for a command.\nYou should not run this command with chain commands.. | +| serve | Not allowed. | +| test | Not allowed. | +| tinker | This opens a REPL (Read, Evaluate, Print and Loop) environment.\nYou should not run this command with chain commands.. | +| vendor:publish | This is an interactive command.\nYou should not run this command with chain commands.. | +| schedule:work | Starts the schedule worker.\nYou should not run this command with chain commands. | +| queue:work | Starts processing jobs on the queue as a daemon.\nYou should not run this command with chain commands. | +| queue:restart | Restarts queue worker daemons after their current job.\nYou should not run this command with chain commands. | +| queue:listen | Listens to a given queue.\nYou should not run this command with chain commands. | + Artisan chain command will ignore these commands for the reasons outlined in the table above. From 42f57605f66526504d9642208a054930f895f32b Mon Sep 17 00:00:00 2001 From: fokosun Date: Mon, 13 Nov 2023 22:38:45 -0500 Subject: [PATCH 2/2] small update --- composer.json | 3 ++- src/Console/ChainCommands.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index ec84b73..713f0b6 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,8 @@ "illuminate/contracts": "^6.0|^7.0|^8.0|^9.0|^10.0", "illuminate/support": "^6.0|^7.0|^8.0|^9.0|^10.0", "psy/psysh": "^0.10.4|^0.11.1", - "symfony/var-dumper": "^4.3.4|^5.0|^6.0" + "symfony/var-dumper": "^4.3.4|^5.0|^6.0", + "ext-json": "*" }, "require-dev": { "mockery/mockery": "~1.3.3|^1.4.2", diff --git a/src/Console/ChainCommands.php b/src/Console/ChainCommands.php index 18b757c..bdd92a8 100644 --- a/src/Console/ChainCommands.php +++ b/src/Console/ChainCommands.php @@ -107,8 +107,8 @@ public function handle(): void $this->table(['Command', '', 'Status', 'Output'], $rows); } - $this->info("Display a list of commands that are not supported."); if ($showIgnoredList) { + $this->info("Display a list of commands that are not supported."); $rows = []; foreach($this->toBeIgnored as $key => $row) { $rows[] = [$key, $row];