dune/src/bin.mli

31 lines
732 B
OCaml

(** OCaml binaries *)
open Stdune
(** Character used to separate entries in [PATH] and similar
environment variables *)
val path_sep : char
(** Contents of [PATH] *)
val path : Path.t list
(** Parse a [PATH] like variable *)
val parse_path : ?sep:char -> string -> Path.t list
(** The opam tool *)
val opam : Path.t option
(** Extension to append to executable filenames *)
val exe : string
(** Look for a program in the PATH *)
val which : ?path:Path.t list -> string -> Path.t option
(** Return the .opt version of a tool if available. If the tool is not available at all in
the given directory, returns [None]. *)
val best_prog : Path.t -> string -> Path.t option
(** "make" program *)
val make : Path.t option