package functoria

  1. Overview
  2. Docs

Shell command helpers. FIXME: replace by Bos.

val exists : string -> bool

exists cmd is true if the command cmd is available in $PATH.

val run : ?redirect:bool -> ('a, unit, string, (unit, string) Rresult.result) Pervasives.format4 -> 'a
val read : ('a, unit, string, (string, string) Rresult.result) Pervasives.format4 -> 'a
val remove : string -> unit
val with_file : string -> (Format.formatter -> 'a) -> 'a
val in_dir : string -> (unit -> 'a) -> 'a
val uname_s : unit -> string option
val uname_m : unit -> string option
val uname_r : unit -> string option
val ocaml_version : unit -> int * int

ocaml_version is ocaml -version's output.

module OCamlfind : sig ... end
OCaml

Innovation. Community. Security.