A reusable function to select an item from a list of string on the command line.
Currently only windows is supported.
if (try selectItem(allocator, items)) |item| {
// Use the selection
}
Type characters to filter the search or navigate with arrows. Select with Enter or exit with escape.