norman-huth / find-command
1.1.1
2024-06-06 06:38 UTC
Requires
- php: ^8.1
- ext-mbstring: *
- illuminate/support: ^10.0|^11.0
- laravel/prompts: ^0.1.18
- symfony/console: ^6.2|^7.0
Requires (Dev)
- laravel/pint: ^1.0
This package is auto-updated.
Last update: 2024-12-06 07:50:46 UTC
README
A 3rd party command for the Frameworks Symfony ^6.2|^7.0+
and Laravel ^10.0|^11.0+
.
This command can be used to search for other commands in a Symfony or Laravel application.
It uses Laravel Prompts under the hoods.
Install
composer require norman-huth/find-command
Usage
Laravel
Run the command.
php artisan find
Symfony
Register the \NormanHuth\FindCommand\SymfonyFindCommand
in Your application and run the command.
php bin/console find
Except Commands
Add the method exceptFromFindCommand
to the command:
class MyCommand extends Command { /** * Except this command from the find command. */ public function exceptFromFindCommand(): bool { return true; }
class MyCommand extends Command { /** * Except this command from the find command. */ public function exceptFromFindCommand(): bool { return config('app.env') != 'local'; }
Search in the arguments and options descriptions too
php artisan find --deep php bin/console find --deep