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

A way to get value out of composed generator? #1708

Closed
thejohnfreeman opened this issue Apr 23, 2019 · 2 comments

Comments

Projects
None yet
2 participants
@thejohnfreeman
Copy link

commented Apr 23, 2019

I'd like to send my users to generator-license to let them choose a license, but I need to know that choice after it runs to put it in the project metadata file I generate. Is there an API for getting values out of subgenerators? Can there be?

@SBoudrias

This comment has been minimized.

Copy link
Member

commented Apr 24, 2019

You could read it from the package.json file after the generator-license run.

There's no API to pass data outside a composed generator. The system isn't design to allow this kind of interactions.

@thejohnfreeman

This comment has been minimized.

Copy link
Author

commented Apr 24, 2019

generator-license does not emit a package.json, nor do I want it to. I'm trying to scaffold a Python project. Thank you for the answer regardless!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.