Module Opam_conf_file.ConfSource

Module that englobes config type and file primitives to read config file.

Sourcetype images = {
  1. ico : string option;
  2. dlg : string option;
  3. ban : string option;
}

Images files

Sourcetype t = {
  1. c_version : OpamVersion.t;
  2. c_wix_version : Wix.Version.t option;
  3. c_images : images;
  4. c_binary_path : string option;
  5. c_binary : string option;
  6. c_embedded : (string * string option) list;
  7. c_envvar : (string * string) list;
}

Content of config file

include OpamFile.IO_FILE with type t := t
Sourceval format_version : OpamVersion.t
Sourceval empty : t

Empty file

Sourceval write : t OpamFile.typed_file -> t -> unit

Write some contents to a file

Read file contents.

Sourceval read_opt : t OpamFile.typed_file -> t option

Returns None on non-existing file

Sourceval safe_read : t OpamFile.typed_file -> t

Read file contents. Return empty if the file does not exist.

Sourceval read_from_channel : ?filename:t OpamFile.typed_file -> in_channel -> t
Sourceval read_from_string : ?filename:t OpamFile.typed_file -> string -> t
Sourceval write_to_channel : ?filename:t OpamFile.typed_file -> out_channel -> t -> unit
Sourceval write_to_string : ?filename:t OpamFile.typed_file -> t -> string