Module moto::menu

source ·

Structs§

Functions§

  • display selection menu displays a header with question “what do you want to do?” and a list of choices that the user can select from using the arrow keys and enter user can also search by typing the name of the choice and the list will be filtered moving the selected item to the top the search string is also diplayed in the bottom of the menu. backspace can be used to delete the last character user can exit the menu by pressing the escape key.
  • handling args moto <task_name> will run the task with the name <task_name>. if no task with the name <task_name> is found, the user will be prompted to select a task from the list of available tasks. moto <task_name> [:vname = whatever the content until next occurance of [: or eof this will allow users to provide long sentences as variables without having to use quotes