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

Question: way to call Lamda name functions inside post_gen hook function e.g. camelCase, piscalCase #645

Closed
theideasaler opened this issue Dec 5, 2022 · 2 comments · Fixed by #679
Assignees
Labels
enhancement New feature or request

Comments

@theideasaler
Copy link

theideasaler commented Dec 5, 2022

Description

I would like to call the camelCase function inside post_gen hook function to do some post-generation processing.

I knew it can be implemented myself, but I would like to know if there is a way to call these functions inside post_gen so I can make sure the results will be consistent and exactly same.

I didn't find it in the documentation or I missed it. If anyone could suggest way to get the same result as the lamda function in template/brick, I would really appreciate.

@theideasaler theideasaler added the documentation Improvements or additions to documentation label Dec 5, 2022
@theideasaler theideasaler changed the title Question: way to call Lamda name functions inside post_gen hook function w.g. camelCase, piscalCase Question: way to call Lamda name functions inside post_gen hook function e.g. camelCase, piscalCase Dec 5, 2022
@felangel
Copy link
Owner

felangel commented Dec 5, 2022

Hi @theideasaler 👋
Thanks for opening an issue!

For now I'd recommend adding package:recase as a dependency in the pubspec.yaml of your hooks but I'll consider exporting the lambas from package:mason so you don't need to add a separate dependency. Sorry for any inconvenience!

@felangel felangel added enhancement candidate Candidate for enhancement but additional research is needed and removed documentation Improvements or additions to documentation labels Dec 5, 2022
@felangel felangel self-assigned this Dec 5, 2022
@theideasaler
Copy link
Author

@felangel Thank you for the reply and good to hear that

@felangel felangel added enhancement New feature or request and removed enhancement candidate Candidate for enhancement but additional research is needed labels Dec 23, 2022
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

Successfully merging a pull request may close this issue.

2 participants