Skip to content

Commit

Permalink
Merge pull request #5 from fokosun/v1.0.0
Browse files Browse the repository at this point in the history
Update readme
  • Loading branch information
fokosun authored Nov 14, 2023
2 parents 36516bf + 42f5760 commit 305b66c
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 20 deletions.
36 changes: 18 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/Console/ChainCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 305b66c

Please sign in to comment.