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

Access to file path during rewriting? #118

Closed
joelmoss opened this issue Feb 23, 2024 · 3 comments
Closed

Access to file path during rewriting? #118

joelmoss opened this issue Feb 23, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@joelmoss
Copy link

Is there a way to know the file system path of the file that is being rewritten in a custom rewriter, particularly in the #safe_rewrite method?

@joelmoss joelmoss added the enhancement New feature or request label Feb 23, 2024
@palkan
Copy link
Collaborator

palkan commented Feb 23, 2024

Currently, no. But I think we can add it to the context.

@palkan palkan closed this as completed in 06c80d3 Feb 23, 2024
palkan added a commit that referenced this issue Feb 23, 2024
palkan added a commit that referenced this issue Feb 23, 2024
@palkan
Copy link
Collaborator

palkan commented Feb 23, 2024

Added context.path in 1.0.2

@joelmoss
Copy link
Author

Awesome! 🙌

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

No branches or pull requests

2 participants