select
Hook for PyInquirer ‘list’ type prompts.Takes in two forms of choices
inputs.1. list of string2. list of maps with the key as the output, the value as displayed question:param message: String message to show when prompting.:param choices: A list of strings or list of k/v pairs per above description:param name: A key to insert the output value to. If not provided defaults to inserting into parent key:param index::return: String for answer
Inputs
Name |
Type |
Default |
Required |
Description |
---|---|---|---|---|
message |
string |
String message to show when prompting. |
||
default |
Any |
Default choice. |
||
name |
string |
tmp |
X |
Extra key to embed into. Artifact of API. |
choices |
Any |
List of strings or dicts with keys as output and values as display. |
||
index |
boolean |
False |
X |
Boolean to return the index instead of the answer |
Arguments
Position |
Argument |
Type |
---|---|---|
1 |
message |
str |
Output
str