Don't prompt the user for input if they're in a CI environment
Closed this issue · 1 comments
erunion commented
If the user is in a CI environment we shouldn't prompt them for input. We'll need to add options for every possible prompt for this to work but it shouldn't be a problem.
In rdme
we use ci-info for detecting if we're running in a CI environment and that should be able to do the same for us here.
erunion commented
Since npx api install
has --identifier
and --yes
arguments for bypassing user prompts I'm going to close this out. I don't think it's worth the effort at the moment to bring in another dependency for detecting if we're generating an SDK in a CI environment.