TASKS are menu-related things that need to happen e.g. on every prompt or after every action or to enter/exit sub-menus
TASKS are menu-related things that need to happen e.g. on every prompt or after every action or to enter/exit sub-menus
(back-one! ctx-atm)
update the given context atom with exiting the current sub-menu
update the given context atom with exiting the current sub-menu
(back-to-root! ctx-atm)
put user back at the top level of the menu
put user back at the top level of the menu
(enter! option ctx-atm)
update the given context atom with entering the indicated sub-menu
update the given context atom with entering the indicated sub-menu
(exit-to-parent-menu path)
return the new path we should have after exiting the current sub-menu if we are in a sub-menu
return the new path we should have after exiting the current sub-menu if we are in a sub-menu
(get-user-choice ctx-atm)
get a valid choice from the user given the current path into the menu and the state of everything in the context atom
get a valid choice from the user given the current path into the menu and the state of everything in the context atom
(show-user-choice-prompt ctx-atm)
run all the configured prompt-related tasks in sequence, to prompt the user for a choice.
run all the configured prompt-related tasks in sequence, to prompt the user for a choice.
(valid-options-set ctx-atm)
returns the SET of valid possible responses from the user given their current path, including the responses that are available at every path (if any)
returns the SET of valid possible responses from the user given their current path, including the responses that are available at every path (if any)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close