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

Add a "dump preprocessor output" facility to the CLI #153

Open
antecedent opened this issue Feb 6, 2024 · 0 comments
Open

Add a "dump preprocessor output" facility to the CLI #153

antecedent opened this issue Feb 6, 2024 · 0 comments
Assignees
Milestone

Comments

@antecedent
Copy link
Owner

In #152, the following has been very helpful:

php -r 'require "Patchwork.php"; echo Patchwork\CodeManipulation\transformString(file_get_contents("path/to.php"));' 

It would be nice to turn it into something more convenient, like the following:

php Patchwork.php path/to.php

By the way, Patchwork already has a rudimentary CLI, intended mostly for warming up the preprocessor cache. I think it could be easily remade to also serve this debugging-related purpose.

@antecedent antecedent self-assigned this Feb 6, 2024
@antecedent antecedent added this to the 2.1 Next milestone Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant