Skip to content

Comments

Add support for default values, multiple choice, and yes/no responses.#2

Open
jastich wants to merge 1 commit intosfischer13:masterfrom
jastich:master
Open

Add support for default values, multiple choice, and yes/no responses.#2
jastich wants to merge 1 commit intosfischer13:masterfrom
jastich:master

Conversation

@jastich
Copy link

@jastich jastich commented Jan 7, 2018

Title pretty much says it all.

prompt.choice displays an enumerated set of choices (1-N) and prompts user for a number.

prompt.boolean displays a yes/no prompt. Configurable to require case sensitivity of response (ex: 'y' is not 'Y') and/or partial responses (ex: 'y' for 'yes').

Added default response if user input is blank. Prompt displays default option.

Just noticed there is another outstanding pull request that also adds a boolean prompt.

@coveralls
Copy link

Coverage Status

Coverage decreased (-12.0%) to 16.788% when pulling ec312d1 on jastich:master into d2acf5d on sfischer13:master.

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

Successfully merging this pull request may close these issues.

2 participants