Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

[expo-cli] check when field when inquirer is used in noninteractive mode #2393

Merged
merged 1 commit into from
Jul 27, 2020

Conversation

wkozyra95
Copy link
Contributor

fixes #2327

@wkozyra95 wkozyra95 changed the title [expo-cli] check when field when prompting in noninteractive mode [expo-cli] check when field when inquirer is used in noninteractive mode Jul 24, 2020
@wkozyra95 wkozyra95 force-pushed the @wkozyra95/check-when-fn-in-noninteractive-mode branch from b240a01 to 4d2d80e Compare July 24, 2020 12:23
if (!('when' in question)) {
return true;
} else if (typeof question.when === 'function') {
return question.when({});
Copy link
Member

@quinlanj quinlanj Jul 24, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a bit confusing for me when i read this and i need to look up inquirer docs to make sense of what kind of object when should be. It'd be helpful if you had some comments explaining that in the case when is a function, it expects to take the user's answers object, which is empty in the case of non-interactive

@wkozyra95 wkozyra95 force-pushed the @wkozyra95/check-when-fn-in-noninteractive-mode branch from 4d2d80e to b4023f6 Compare July 27, 2020 08:59
@wkozyra95 wkozyra95 merged commit 43d949b into master Jul 27, 2020
@wkozyra95 wkozyra95 deleted the @wkozyra95/check-when-fn-in-noninteractive-mode branch July 27, 2020 09:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

expo fetch:android:keystore requires a TTY, but doesn't actually take any user input
3 participants