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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] How to inject user's input that is not obtained from the CLI #1744

Closed
jorgecoca opened this issue Aug 7, 2020 · 0 comments
Closed

Comments

@jorgecoca
Copy link

Hello everyone! 馃憢

First of all, thank you for such an amazing package! I love working with Yeoman and all the possibilities it offers!

One use case I'd like to cover with one of my yeoman generators is to be able to collect inputs from a JSON object/file: I have a few project templates that I think they will be valuable to the community, but instead of having users having to use the CLI, I'd like to offer them a UI (let's say web or a mobile app), collect their inputs in a JSON file (or any other format) and run the generator in my own infrastructure.

My question is: how can I inject that input received from a UI into a generator, so I do not run the prompting step, and instead, I can provide a configuration object directly to the configuring step?

Thank you so much! 馃挴

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

1 participant