Module Make_runtime.Make

Parameters

module M : M

Signature

type t
val create : unit -> t

I/O

include Volgo.Vcs.Trait.File_system.S with type t := t
val load_file : t -> path:Fpath_sexp0.Absolute_path.t -> (string, Err.t) Stdlib.Result.t
val save_file : t -> ?perms:int -> unit -> path:Fpath_sexp0.Absolute_path.t -> file_contents:string -> (unit, Err.t) Stdlib.Result.t
val read_dir : t -> dir:Fpath_sexp0.Absolute_path.t -> (Fpath_sexp0.Fsegment.t list, Err.t) Stdlib.Result.t

Running the git/hg command line

val vcs_cli : ?env:string array -> t -> cwd:Fpath_sexp0.Absolute_path.t -> args:string list -> f:(M.Output.t -> ('a, Err.t) Stdlib.Result.t) -> ('a, Err.t) Stdlib.Result.t