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

Add a prompt / response system #1130

Open
jason0x43 opened this issue Apr 13, 2020 · 0 comments
Open

Add a prompt / response system #1130

jason0x43 opened this issue Apr 13, 2020 · 0 comments
Labels
domain-ui Related to Intern's user interface effort-medium This may take a couple of days enhancement A new or improved feature priority-medium This should get done, but it's not a high priority

Comments

@jason0x43
Copy link
Member

Add functionality to Intern for asking the user for input. This function should be exported on the Intern object and be fairly basic, like:

const name = await intern.askUser('What is your name?');
const toTest = await intern.askUser('What files should be tested?', ['Specific file', 'All', 'Only changed']);

This functionality can be used for various purposes, such as Intern affecting watch mode behavior, a la Jest, or plugins allowing options to be set interactively.

@jason0x43 jason0x43 added enhancement A new or improved feature effort-medium This may take a couple of days domain-ui Related to Intern's user interface priority-medium This should get done, but it's not a high priority labels Apr 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain-ui Related to Intern's user interface effort-medium This may take a couple of days enhancement A new or improved feature priority-medium This should get done, but it's not a high priority
Projects
None yet
Development

No branches or pull requests

1 participant