Get input from the user.
- 6.x includes/drush.inc userinput
- 5.x includes/drush.inc userinput
- 4.x includes/drush.inc userinput
Ask the user a basic yes/no question.
Functions
|
Name |
Location | Description |
|---|---|---|
| drush_choice |
includes/ |
Ask the user to select an item from a list. From a provided associative array, drush_choice will display all of the questions, numbered from 1 to N, and return the item the user selected. "0" is always cancel; entering a blank line is also… |
| drush_choice_multiple |
includes/ |
Ask the user to select multiple items from a list. This is a wrapper around drush_choice, that repeats the selection process, allowing users to toggle a number of items in a list. The number of values that can be constrained by both min and max: the… |
| drush_prompt |
includes/ |
Prompt the user for input |
File
- includes/
drush.inc, line 917 - The drush API implementation and helpers.