opam-format
OpamFile.Repo_config_legacy
Repository config: $opam/repo/$repo/config. Deprecated, for migration only
$opam/repo/$repo/config
type t = {
repo_name : OpamTypes.repository_name;
repo_root : OpamTypes.dirname;
repo_url : OpamTypes.url;
repo_priority : int;
}
include IO_FILE with type t := t
val format_version : OpamVersion.t
val empty : t
Empty file
val write : t typed_file -> t -> unit
Write some contents to a file
val read : t typed_file -> t
Read file contents.
OpamSystem.Internal_error
if the file does not exist.
val read_opt : t typed_file -> t option
Returns None on non-existing file
None
val safe_read : t typed_file -> t
Read file contents. Return empty if the file does not exist.
empty
val read_from_channel : ?filename:t typed_file -> in_channel -> t
val read_from_string : ?filename:t typed_file -> string -> t
val write_to_channel : ?filename:t typed_file -> out_channel -> t -> unit
val write_to_string : ?filename:t typed_file -> t -> string