package spotlib

  1. Overview
  2. Docs
type output = [
  1. | `Err of [ `EOF | `Error of exn | `Read of string ]
  2. | `Out of [ `EOF | `Error of exn | `Read of string ]
]
module Ver1 : sig ... end

This is Ver2

type 'a t
val shell : ?env:string array -> string -> output SpotStream.t t
val exec : ?env:string array -> string list -> output SpotStream.t t
val command : 'a t -> string
val wait : 'a t -> 'a * Unix.process_status
val map : ('a -> 'b) -> 'a t -> 'b t
val lines : output SpotStream.t t -> string list t
val stdout : output SpotStream.t t -> string list t
val stderr : output SpotStream.t t -> string list t
val iter : (output -> unit) -> output SpotStream.t t -> unit t
val fold : ('a -> 'b -> 'b) -> 'b -> 'a SpotStream.t t -> 'b t
val void : 'a t -> unit t
val must_exit_with : int -> ('a * Unix.process_status) -> 'a