Module Async_interactive
val interactive : bool Core.refval print_string : string -> unit Async.Deferred.tThese
print*functions only print when!interactive.
val print_endline : string -> unit Async.Deferred.tval printf : ('r, unit, string, unit Async.Deferred.t) Core.format4 -> 'rval prints : string -> 'a -> ('a -> Async.Sexp.t) -> unit Async.Deferred.tval print_s : Async.Sexp.t -> unit Async.Deferred.tval ask_dispatch_gen : f:(string -> ('a, string) Core.Result.t) -> string -> 'a Async.Deferred.t
module Choice : sig ... endval ask_dispatch_with_help : ?show_options:bool -> string -> 'a Choice.t list -> 'a Async.Deferred.task_dispatch_gen question choicesdisplaysquestionand gets user input to select one of thechoices. At most once choice can be thedefaultchoice.
val ask_yn : ?default:bool -> string -> bool Async.Deferred.tval ask_ynf : ?default:bool -> ('a, unit, string, bool Async.Deferred.t) Core.format4 -> 'aval arithmetic_challenge_exn : ?red:unit -> unit -> unit Async.Deferred.tThis will prompt the user to solve a math problem and exit if they fail.
redwill make the prompt print in red the the screen to make it more visually loudThis will raise if no input or incorrect input is given
val show_file : ?pager:string -> ?msg:string -> file:string -> unit -> unit Async.Deferred.tThese
show*functions print even whennot !interactive.
val show_string_with_pager : ?pager:string -> string -> unit Async.Deferred.t
module Job : sig ... end