Liking cljdoc? Tell your friends :D

brimley.tasks

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
raw docstring

back-one!clj

(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
sourceraw docstring

back-to-root!clj

(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
sourceraw docstring

detailed-prompt-tasksclj

source

enter!clj

(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
sourceraw docstring

exit-to-parent-menuclj

(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
sourceraw docstring

expert-mode!clj

(expert-mode! ctx-atm)
source

expert-path->stringclj

(expert-path->string path)
source

expert-paths!clj

(expert-paths! ctx-atm)
source

get-user-choiceclj

(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
sourceraw docstring

keyword->taskclj

source

line-breakclj

(line-break ctx-atm)
source

novice-mode!clj

(novice-mode! ctx-atm)
source

novice-paths!clj

(novice-paths! ctx-atm)
source

perform-after-tasksclj

(perform-after-tasks ctx-atm)
source

perform-taskclj

(perform-task ctx-atm t)
source

show-choicesclj

(show-choices ctx-atm)
source

show-detailed-pathclj

(show-detailed-path ctx-atm)
source

show-detailed-promptclj

(show-detailed-prompt ctx-atm)
source

show-pathclj

(show-path ctx-atm)
source

show-promptclj

(show-prompt ctx-atm)
source

show-user-choice-promptclj

(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.
sourceraw docstring

toggle-mode!clj

(toggle-mode! ctx-atm)
source

valid-options-setclj

(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)
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close