LemonCore.Config.TomlPatch (lemon_core v0.1.0)

View Source

Minimal TOML patch helpers for targeted table key updates.

The bundled TOML dependency supports decoding but not encoding, so this module performs focused textual edits while preserving unrelated config content.

Summary

Functions

delete_key(content, table, key)

@spec delete_key(String.t(), String.t(), String.t()) :: String.t()

upsert_raw_line(content, table, key, line)

@spec upsert_raw_line(String.t(), String.t(), String.t(), String.t()) :: String.t()

upsert_string(content, table, key, value)

@spec upsert_string(String.t(), String.t(), String.t(), String.t()) :: String.t()