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

registerGeneratorsIn function #54

Closed
jseed opened this issue Feb 20, 2016 · 3 comments
Closed

registerGeneratorsIn function #54

jseed opened this issue Feb 20, 2016 · 3 comments
Labels

Comments

@jseed
Copy link

jseed commented Feb 20, 2016

Currently Environment provides the function findGeneratorsIn, which searches a list of paths and returns a list of generators within those paths. From what I can tell, the user still has to loop through each found module, registering any generators found within. If I am mistaken by all means correct me.

I would like to propose the addition of a registerGeneratorsIn method which receives a list of paths, uses the findGeneratorsIn function to find all the modules within these paths, and then registers all of the generators/sub-generators in the found modules. Namespaces could be generated using the namespace method.

If this addition makes sense I would be happy to start working on a PR.

@SBoudrias
Copy link
Member

What's the use case?

@jseed
Copy link
Author

jseed commented Feb 21, 2016

I am building a web app that uses yeoman generators. The generators available will all be located under a common directory on the server. Currently, I am using findGeneratorsIn to list all of the modules in this directory, and then looping through each module, registering any generators and sub generators.

@jseed jseed changed the title registerGeneratorsIn method registerGeneratorsIn function Feb 26, 2016
@github-actions
Copy link
Contributor

github-actions bot commented Jan 9, 2020

This issue is stale because it has been open 15 days with no activity. Remove stale label or comment or this will be closed in 5 days

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

No branches or pull requests

2 participants