Skip to content

3rd party command for Symfony and Laravel to search for commands.

License

Notifications You must be signed in to change notification settings

Muetze42/find-command

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Find Command

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.

preview

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

preview