Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search in files with ctp extension #82

Closed
garfildalex6 opened this issue Apr 29, 2024 · 4 comments · Fixed by #83
Closed

Search in files with ctp extension #82

garfildalex6 opened this issue Apr 29, 2024 · 4 comments · Fixed by #83

Comments

@garfildalex6
Copy link

Thanks for the work you've done.
When I try to search a file with the ctp extension, it doesn't find anything. As soon as I change the file extension to php, the search occurs.
The fact is that I have too many such files (this is a requirement of the CakePHP framework) and it is not possible to change the extensions for all files.
Please add the ability to search in such files.

quasilyte added a commit that referenced this issue Apr 29, 2024
@quasilyte
Copy link
Owner

Please see whether the linked PR solves your issue.
Use --php-ext flag to specify the extensions to scan.
It's a comma-separated list that is set to php,php5,inc,phtml by default.
Try setting it to php,ctp for example.

@garfildalex6
Copy link
Author

Tell me how to download the compiled file for Windows to check?

quasilyte added a commit that referenced this issue Apr 29, 2024
@quasilyte quasilyte reopened this Apr 29, 2024
@quasilyte
Copy link
Owner

I released a v1.0.1 version with binaries.

If you want to build it from source, you would need Go toolchain on your machine and do:

git clone https://github.com/quasilyte/phpgrep.git
cd phpgrep
go build -o phpgrep.exe ./cmd/phpgrep

Or use a go install command:

go install github.com/quasilyte/phpgrep/cmd/phpgrep

@garfildalex6
Copy link
Author

This is wonderful! Thanks a lot! Everything works as expected!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants