package expect

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t
type expect_match = [
  1. | `Contains of string
  2. | `Eof
  3. | `Exact of string
  4. | `Fun of string -> bool
  5. | `Prefix of string
  6. | `Suffix of string
  7. | `Timeout
]
val spawn : ?verbose:bool -> ?timeout:float option -> ?env:string array -> ?use_stderr:bool -> string -> string array -> t
val set_timeout : t -> float option -> t
val send : t -> string -> unit
val expect : t -> ?fmatches:(string -> 'a option) list -> (expect_match * 'a) list -> 'a -> 'a
val close : t -> Unix.process_status
val with_spawn : ?verbose:bool -> ?timeout:float option -> ?env:string array -> ?use_stderr:bool -> string -> string array -> (t -> 'a -> 'a) -> 'a -> 'a * Unix.process_status
OCaml

Innovation. Community. Security.