- All Superinterfaces:
Prompt
- All Known Implementing Classes:
DefaultChoicePrompt
Interface for choice prompts.
A choice prompt allows the user to select a single item from a list of choices,
where each choice has a key associated with it.
-
Method Summary
Methods inherited from interface org.jline.prompt.Prompt
getFilter, getMessage, getName, getTransformer
-
Method Details
-
getItems
List<ChoiceItem> getItems()Get the list of choice items.- Returns:
- the list of choice items
-