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

Add default value to Question #3

Closed
AlecAivazis opened this issue Oct 30, 2016 · 0 comments
Closed

Add default value to Question #3

AlecAivazis opened this issue Oct 30, 2016 · 0 comments

Comments

@AlecAivazis
Copy link
Owner

Inquirer styles this in grey surrounded by () after the message

eimlav added a commit to eimlav/survey that referenced this issue Jun 5, 2019
This commit adds a MultiInput prompt allowing a user to enter multiple
distinct values for a question. These are then returned as a []string.
For example:

	? What are your friend's names?

Then the user is prompted for the first answer, then the second and so
on until they enter an empty line, at which point the question will be
exited.

	? AlecAivazis#1: Batman
	? AlecAivazis#2: Joker
	? AlecAivazis#3:

Then once finished they enter an empty line and the question will
finish, outputting the answers.

	? What are your friend's names? [Batman Joker]
eimlav added a commit to eimlav/survey that referenced this issue Jun 5, 2019
This commit adds a MultiInput prompt allowing a user to enter multiple
distinct values for a question. These are then returned as a []string.
For example:

	? What are your friend's names?

Then the user is prompted for the first answer, then the second and so
on.

	? AlecAivazis#1: Batman
	? AlecAivazis#2: Joker
	? AlecAivazis#3:

Then once finished they enter an empty line and the question will exit,
outputting the answers.

	? What are your friend's names? [Batman Joker]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant