Deborah.Sarah.TOMLLogger

Deborah.Sarah.TOMLLogger.append_section_to_tomlMethod
append_section_to_toml(
    info_file::String,
    section::String,
    content::OrderedCollections.OrderedDict,
) -> Nothing

Append a new section to an existing TOML file.

Arguments

  • info_file: Path to the TOML file to which the section will be appended.
  • section: Name of the TOML section (e.g., "metadata").
  • content: OrderedDict of key-value pairs to be written under the section.

Behavior

  • Opens the file in append mode.
  • Inserts a blank line, followed by a [section] header.
  • Each key-value pair is written as key = repr(value) for TOML compatibility.
source