eeGrepTaskPlugin - 1.0.1

Grep task plugin

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to the Plugins Home

Signin


Forgot your password?
Create an account

Tools

Stats

advanced search
Information Readme Releases Changelog Contribute
Show source

eeGrepTaskPlugin

Description

This plugins eases the use of the grep command with Symfony.

Usage

$ symfony util:grep [--include="..."] [--exclude-dir="..."] [--exclude-file="..."] pattern

Arguments: pattern The searched pattern

Options:

 --include       Extension searched (multiple values allowed)
 --exclude-dir   Exclude directory from search (multiple values allowed)
 --exclude-file  Exclude file from search (multiple values allowed)

Description: The grep task searches for a pattern in source code. It executes the system command grep with the right options for Symfony.

The default options are located in this file: plugins/eeGrepPlugin/config/app.yml

Specifying options on the command line overrides app.yml default options.

Example:

$ symfony grep getContact

is equivalent to :

$ grep "getContact" . -r --color=always
    --include=*.php --include=*.css --include=*.tpl --include=*.js --include=*.yml --include=*.ini
    --exclude-dir=./lib/model/om --exclude-dir=./lib/model/map
    --exclude-dir=./lib/form/base --exclude-dir=./cache --exclude-dir=./plugins

Contact

If you have any questions feel free to contact me (see the Plugin Information tab).