package async_interactive
Module Async_interactiveSource
These print* functions only print when !interactive.
Source
val ask_dispatch_gen :
f:(string -> ('a, string) Core.Result.t) ->
string ->
'a Async.Deferred.tSource
val ask_dispatch_with_help :
?show_options:bool ->
?show_help:bool ->
string ->
'a Choice.t list ->
'a Async.Deferred.task_dispatch_gen question choices displays question and gets user input to select one of the choices. At most once choice can be the default choice.
This will prompt the user to solve a math problem and exit if they fail. red will make the prompt print in red the the screen to make it more visually loud
This will raise if no input or incorrect input is given
These show* functions print even when not !interactive.
Source
val with_writer_to_pager :
?pager:string ->
unit ->
f:(Async.Writer.t -> 'a Async.Deferred.t) ->
'a Async.Deferred.t