Function shell_helper::dialog[][src]

pub fn dialog(question: &str, options: Vec<(String, fn())>)

Asks question (inserting a newline at the end) and given options (a vector of tuples (option, function)) will show all options and numbers which have to be typed in in order to choose them. If user types in 0, the function returns