OpamFile.Dot_config.config files
include IO_FILEval format_version : OpamVersion.tval empty : tEmpty file
val write : t typed_file -> t -> unitWrite some contents to a file
val read : t typed_file -> tRead file contents. Raise an error if the file does not exist.
val read_opt : t typed_file -> t optionReturns None on non-existing file
val safe_read : t typed_file -> tRead file contents. Return empty if the file does not exist.
val read_from_channel : ?filename:t typed_file -> in_channel -> tval read_from_string : ?filename:t typed_file -> string -> tval write_to_channel : ?filename:t typed_file -> out_channel -> t -> unitval write_to_string : ?filename:t typed_file -> t -> stringval create : (OpamTypes.variable * OpamTypes.variable_contents) list -> tCreate a new .config file (containing only variables)
val file_depends : t -> (OpamTypes.filename * OpamHash.t) listDependency towards file-system paths and their hashes
val with_file_depends : (OpamTypes.filename * OpamHash.t) list -> t -> tval with_vars : (OpamTypes.variable * OpamTypes.variable_contents) list -> t -> tSets all bindings in the file
val variable : t -> OpamTypes.variable -> OpamTypes.variable_contents optionTop-level variables
val variables : t -> OpamTypes.variable listThe list of top-level variables
val bindings : t -> (OpamTypes.variable * OpamTypes.variable_contents) listLists all the variable bindings in the file
val set : OpamTypes.variable -> OpamTypes.variable_contents option -> t -> tSets the given variable, overriding any previous definition. With None, unsets the variable