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 metadata for current file in ContextHook #2

Open
macintacos opened this issue Jun 15, 2022 · 1 comment
Open

Add metadata for current file in ContextHook #2

macintacos opened this issue Jun 15, 2022 · 1 comment
Assignees

Comments

@macintacos
Copy link

Is your feature request related to a problem? Please describe.

Please see the following discussion I started in Copier for more context: copier-org/copier#695

Describe the solution you'd like

It would be great if we could get the current file being "worked on" before the hook method is called so that we can add some conditional logic based on the file's name.

Describe alternatives you've considered

See this comment: copier-org/copier#695 (reply in thread)

@pawamoy pawamoy self-assigned this Jun 16, 2022
@pawamoy
Copy link
Collaborator

pawamoy commented Feb 10, 2023

Great! Could you open a feature request on the copier-templates-extensions repository in fact? This way I can assign myself so that I don't forget about it slightly_smiling_face

Well I definitely forgot about it anyway 😂 Sorry!
I don't have a lot of time these days. If someone wants to send a PR, I'd review it 🙂
Shouldn't be too hard to implement.

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

No branches or pull requests

2 participants