singleSelect<T> function
Prompts the user to select a single option from a list.
Implementation
T singleSelect<T>(
String message, {
required List<T> options,
required String Function(T) display,
}) {
final index = Select.withTheme(
prompt: message,
options: List.of(options.map(display)),
theme: radioTheme,
).interact();
return options[index];
}