Crate simple_cli

Source

Functionsยง

clear_terminal
Clears all printed lines from the terminal.
get_number
Prompts the user for a number input and returns it.
get_string
Prompts the user for a string input and returns it.
paginated_list
Displays a paginated list of items.
print_list
Displays a list of items.
select_number_from_choices
Prompts the user to input a number from a selection of number choices, and returns the number the user selected. Panics if there are no numbers in the vector passed into the function.
select_string_from_choices
Prompts the user to input a string from a selection of string choices, and returns the string the user selected. Panics if there are no strings in the choices vector passed into the function.